git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Correct way of making existing remote repository "bare"
@ 2009-07-15 12:20 Graeme Geldenhuys
  2009-07-15 14:08 ` Johannes Schindelin
  2009-07-15 14:12 ` Dirk Süsserott
  0 siblings, 2 replies; 7+ messages in thread
From: Graeme Geldenhuys @ 2009-07-15 12:20 UTC (permalink / raw)
  To: git

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/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-07-16  7:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-15 12:20 Correct way of making existing remote repository "bare" Graeme Geldenhuys
2009-07-15 14:08 ` Johannes Schindelin
2009-07-15 14:21   ` Dirk Süsserott
2009-07-15 14:44   ` Graeme Geldenhuys
2009-07-16  7:59   ` Eric Raible
2009-07-15 14:12 ` Dirk Süsserott
2009-07-15 19:39   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).