From: Wincent Colaiuta Date: Wed, 14 Nov 2007 20:30:46 GMT Subject: Re: Cloning empty repositories, was Re: What is the idea for bare repositories? Message-ID: <14F93E86-32FA-41AD-BB02-256A599C82E0@wincent.com> In-Reply-To: <18235.22445.16228.535898@lisa.zopyra.com> El 14/11/2007, a las 21:16, Bill Lear escribió: > % mkdir new_repo > % cd new_repo > [add content] > % git commit -a -m "Initial stuff" > % git config remote.origin.url git://host/new_repo > % git push > [ach! fails! what's up??] > [poke, read, poke some more, try other things..] > [try setting the remote.origin.fetch? No, that doesn't work] > [try setting branch.master.remote? Just edit by hand??] > % git push master > [fails again; read some more; think, think, think...] > % git push origin master > [aha! finally it works] Instead of using git-config I think the following would have worked: git remote add origin git.example.com:/pub/git/path_repositories/ repo.git git push --all I guess it is not necessarily obvious the first time, which more than anything makes this a documentation issue. I now can't remember how I learnt this; probably by reading this list. Cheers, Wincent