User:Fab/Personal aports repo: Difference between revisions

From Alpine Linux
(Created page with "This page was made to check the existing guides to setup a developer repository and publish it at [http://git.alpinelinux.org/ git.alpinelinux.org]. I use the aports repository b...")
 
(update)
 
(13 intermediate revisions by the same user not shown)
Line 7: Line 7:
   
   
SSH access to git.alpinelinux.org and some space is needed.
SSH access to git.alpinelinux.org and some space is needed.
== Create a repository ==
Create a directory on your local system.
{{cmd|mkdir -p aports}}
Initialize the git repository and create a first commit
{{cmd|cd aports
git init}}
== Create a bare repo ==
Clone it to a bare repo
{{cmd|cd ..
git clone --bare aports aports.git}}
Set the description
{{cmd|echo "fab's aports repo" > aports.git/description}}
Set the section and your name for cgit.
<pre>cat <<EOF >> aports.git/cgitrc
section=Developer fab
owner=Fabian Affolter
EOF</pre>
== Upload to git.alpinelinux.org ==
Copy the content to your the ~/cgit directory on [http://git.alpinelinux.org/ git.alpinelinux.org].
{{cmd|scp -r aports.git git.alpinelinux.org:cgit/}}
== Clean up ==
We no longer need the local aports.git directory.
{{Cmd|rm -rf aports.git}}
== Add your personal repo ==
So far git does not know anything about about the repositories.
{{Cmd|cd aports
git config remote.origin.pushurl "ssh://git.alpinelinux.org/user/fab/aports"}}
== Add upstream source to merge with ==
Add the original source as a git remote repository ("upstream" can be whatever name you want to assign to the remote repository):
{{cmd|git remote add upstream git://git.alpinelinux.org/aports}}
== Populate your repository ==
Now your personal repository can be filled with the data from the upstream aports repository.
{{Cmd|git pull upstream master}}
With a push the repository data will be upload to the git repository hosted by [http://git.alpinelinux.org/ git.alpinelinux.org].
{{Cmd|git push}}
Now everything is ready to make APKBUILD files.

Latest revision as of 21:16, 29 July 2015

This page was made to check the existing guides to setup a developer repository and publish it at git.alpinelinux.org. I use the aports repository because this requires a bit more of configuration than just setting up a repo at git.alpinelinux.org.

Note: If you just want to have a local clone of the official Alpine aports repo, go to a directory of your choice and use git to clone everything.

git clone git://git.alpinelinux.org/aports.git

SSH access to git.alpinelinux.org and some space is needed.

Create a repository

Create a directory on your local system.

mkdir -p aports

Initialize the git repository and create a first commit

cd aports git init

Create a bare repo

Clone it to a bare repo

cd .. git clone --bare aports aports.git

Set the description

echo "fab's aports repo" > aports.git/description

Set the section and your name for cgit.

cat <<EOF >> aports.git/cgitrc
section=Developer fab
owner=Fabian Affolter
EOF

Upload to git.alpinelinux.org

Copy the content to your the ~/cgit directory on git.alpinelinux.org.

scp -r aports.git git.alpinelinux.org:cgit/

Clean up

We no longer need the local aports.git directory.

rm -rf aports.git

Add your personal repo

So far git does not know anything about about the repositories.

cd aports git config remote.origin.pushurl "ssh://git.alpinelinux.org/user/fab/aports"

Add upstream source to merge with

Add the original source as a git remote repository ("upstream" can be whatever name you want to assign to the remote repository):

git remote add upstream git://git.alpinelinux.org/aports

Populate your repository

Now your personal repository can be filled with the data from the upstream aports repository.

git pull upstream master

With a push the repository data will be upload to the git repository hosted by git.alpinelinux.org.

git push

Now everything is ready to make APKBUILD files.