Re: Problem with a push
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jun 12, 2007, 18:46 UTC
- Message-ID
- <alpine.LFD.0.98.0706121144050.14121@woody.linux-foundation.org>
- In-Reply-To
- <Pine.LNX.4.64.0706121309260.7703@www.mintpixels.com>
On Tue, 12 Jun 2007, Alex R.M. Turner wrote:
> > Based on what you've said, it seems like I should be initialising a blank > repo on machine A, then pushing from machine B to machine A, rather than > cloning on A from B.
That's generally what you'd do for a central repo, yes. But:
> At this point would it just be sensible to delete the remote branches on > machine A?
Yes, in the current environment, the easiest thing to do is to just remove those branches.
OR, alternatively, just keep them, but on machine B, make your .git/config file have something like
[remote "origin"] url = ssh://aturner@svn.mintpixels.com/data/git/mls fetch = +refs/heads/*:refs/remotes/origin/* push = refs/heads/*:refs/heads/*
which should just make it clear to "git push" than when you push from B to "origin", you should push everything under "refs/heads" (assuming that's what you want, of course)-
Linus