Correct way of making existing remote repository "bare"
- From
Graeme Geldenhuys <graemeg@gmail.com>
- Date
- Jul 15, 2009, 12:20 UTC
- Message-ID
- <h3khis$3tq$1@ger.gmane.org>
Hi,
Yesterday I initialized a new repository on our server. I did some coding locally, added the remote server (git remote add ....) and then pushed my changes to the remote server.
But I noticed that my remote server is not a "bare" repository and git complains when I push to it again. What is the correct way to make an existing remote repository bare?
This is what I did and it worked, but not sure if this is the correct way of doing it.
Steps I done:
* ssh to remote server * git clone --bare -l <path_to_repos> <new_dir> * renamed old repository directory * renamed new repository dir to what old repository used to be.
Like I said, this did the tick, but is this the correct way of doing it?
Regards, - Graeme -
-- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/