Create new git repository with gitosis

Assuming gitosis already set up and working…

Edit gitosis-admin/gitosis.conf and add the new repository.

[group company]
members = jackblack
writable = examproj

Commit this and push it.

git commit -a -m "added examproj"
git push

In a local repository (you’ve already called git init and done your initial commit), push the repository to the server.

git remote add origin git@code.example.com:examproj.git
git push origin master:refs/heads/master

Then clone it to where you want it.

cd ~/git
git clone git@code.example.com:examproj.git
You should follow me on Twitter: @patrickxb