Re: Local branch to remote branch translation
- From
Steffen Prohaska <prohaska@zib.de>
- Date
- Nov 11, 2007, 18:19 UTC
- Message-ID
- <A1B9CE91-15E0-4298-A606-68BB31541574@zib.de>
- In-Reply-To
- <9e4733910711111002x2f8cabf7yce263faf7b33bde1@mail.gmail.com>
On Nov 11, 2007, at 7:02 PM, Jon Smirl wrote:
> Is the remote config not correct?
This is the configuration for remote "dreamhost". In your previous mail you also mentioned a remote "linus". But this seems to be unrelated to your question.
> [remote "dreamhost"] > url = ssh://jonsmirl1@git.digispeaker.com/~/mpc5200b.git > fetch = +refs/heads/*:refs/remotes/dreamhost/*
correct. This fetches the branches from the remote and stores them locally as remote tracking branches "dreamhost/<branch>".
> push = +refs/heads/*:refs/remotes/linus/*
This "renames" your branches when you push. Your local branches get pushed to "dreamhost" and are stored there as remote branches "linus/<branch>". From your previous mail I assume you like to store them as normal branches. You'd need to say
push = +refs/heads/*:refs/heads/*
But most likely you don't want to force here, that is drop '+'. And you don't need to explicitly say that you want to store a branch under the same name. So, probably you want
push = refs/heads/*
But maybe you could even drop the push line completely. Then, only existing branches would be pushed and if you want to create a new remote branch on "dreamhost" you'd need to explicitly tell git with
git push dreamhost <new-branch>
Does this help? Steffen