pappu
Wednesday, June 15, 2016
 

Creating and using bare git repositories

Good for writing shared papers in LaTeX!


In the host which you want to keep the bare repo, login and do the following:

Here the host is students server of iit mandi and the group is students.


$ mkdir paper
$ cd paper/
$ git init --bare globalsip.git
$ cd globalsip.git/
$ chgrp -R students .
$ chmod -R g+rwX .
$ find . -type d -exec chmod g+s '{}' +


The above is a one-time init of the bare repo.



In the hosts where you want to keep the working directories, do the following:

git clone ssh://username1@hostname1//path/to/globalsip2016/paper/globalsip.git

You may need to run:
git config core.sharedRepository group
in your working directory.

git clone ssh://username2@hostname2//path/to/globalsip2016/paper/globalsip.git

Then use git as usual!

Source: http://stackoverflow.com/questions/6448242/git-push-error-insufficient-permission-for-adding-an-object-to-repository-datab

 
Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home
This is the blog of R.Padmanabhan

Name:
Location: Chennai, India

Look at my webpage for more details. I am rpappu2 in orkut.

Archives
October 2004 / January 2006 / February 2006 / March 2006 / October 2006 / July 2008 / December 2008 / November 2009 / February 2010 / September 2010 / December 2010 / January 2011 / May 2012 / October 2012 / March 2014 / February 2015 / July 2015 / June 2016 / October 2019 / July 2020 /


Powered by Blogger

Subscribe to
Posts [Atom]