Re: How to init a empty repo for pushing?
- From
Jeff King <peff@peff.net>
- Date
- Apr 3, 2009, 18:23 UTC
- Message-ID
- <20090403182312.GA15071@coredump.intra.peff.net>
- In-Reply-To
- <eafc0afe0904031117rbfd55cft5f40f1b45df1e454@mail.gmail.com>
On Sat, Apr 04, 2009 at 02:17:33AM +0800, Changsheng Jiang wrote:
> Just 'git init' in server, then 'git push server' after 'git remote > add server ...' in laptop gives error.
It's hard to say without seeing the error message, but I'm assuming it was along the lines of "No refs in common".
By default, "git push server" will push matching branches (i.e., ones that both the client and the server have in common). To push a new branch, you say "git push server $BRANCH", or even just "git push --all server".
-Peff