|
|
(8 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| Developers with ssh access can publish their repositories repositories on cgit.
| | #REDIRECT [[Development_using_git:Cgit]] |
| | |
| == Create a repository ==
| |
| Create a directory on your private computer
| |
| {{cmd|mkdir mytest
| |
| cd mytest}}
| |
| init git and create a first commit
| |
| {{cmd|echo "testing" > test.txt
| |
| git init
| |
| git add .
| |
| git commit -m 'initial commit'}}
| |
| | |
| == Create a bare repo ==
| |
| Clone it to a bare repo
| |
| {{cmd|cd ..
| |
| git clone --bare mytest mytest.git}}
| |
| | |
| Set the description
| |
| {{cmd|echo "My git/cgit test" > mytest.git/description}}
| |
| | |
| == Publish it on git.alpinelinux.org ==
| |
| Set the section for cgit
| |
| {{cmd|vim mytest.git/cgitrc}}
| |
| Add something like this to the file
| |
| section=Developer ncopa
| |
| | |
| Copy the content to ~/cgit dir on git.alpinelinux.org
| |
| {{cmd|scp -r mytest.git git.alpinelinux.org:cgit/}}
| |
| | |
| == Clean up ==
| |
| We no longer need the local bare repository.
| |
| {{cmd|rm -rf mytest.git}}
| |