Ubuntu build gitolite service

Ubuntu builds gitolite service:

adduser git

water - go

$ ssh-keygen
Enter (ie don’t set a password)
$ git clone git://github.com/sitaramc/gitolite
$ mkdir bin
$ ./gitolite/install -to ~/bin
$ ~/bin/gitolite setup -pk ~ /.ssh/id_rsa.pub

$ git clone [email protected]: gitolite-admin.git

Set client users to download without password

Put the user's id_rsa.pub on the server side /home/git/gitolite-admin/keydir/ and change it to the user's name (such as ming.pub)

$ cd gitolite-admin
$ git add .
$ git commit -m "add ming key"
$ git push origin master

New warehouse:

CD $ gitolite an admin
$ force conf / gitolite.conf

repo project
RW+ = ming (multiple accounts are separated by spaces)

:wq

$ git add .
$ git commit -m "add project"
$ git push origin master

At this time, the project.git directory will be automatically generated under /home/git/repositories

Client test (ming account, download account is git, testing.git defaults to all permissions, for testing):

Download:
$ git clone [email protected]:project

提交:
$ cd project
$ touch aa.txt
$ git add .
$ git commit -m "add aa.txt"
$ git push origin master

Re-download (verify whether the submission is valid):
$ rm -rf project
$ git clone [email protected]:project

Guess you like

Origin blog.51cto.com/yangzhiming/2550627