1.initialize the git in git user login home ... link ssh public key with git home
2.it will create .gitosis.conf
3.next to clone gitosis-admin
Server
=====
install gitosis and git
Configuration
=============
create a user called git
give appropriate permissions to critical files
ensure .ssh folder
git unlike ssh uses gitosis-init to append public key(id_rsa.pub) to authorized_keys file(please remove the previous conflicting entries if any)
Client
======
use git clone to get the init files
follow http://www.hackido.com/2010/01/installing-git-on-server-ubuntu-or.html
At any point to reset
rm -r gitosis,repositories,.gitosis.conf
Creating a new repo
====================
in the gitosis-admin folder cloned initialially on the client there is the file gitosis.conf
Add entries for the new repo in it,note that the writable should have "folder(project)" name
Add group can be arbitrary
add this to remote using commit
follow the link
http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
on any client use git clone git@localhost:test.git
No comments:
Post a Comment