[dmd-internals] Git question: How do I push a *single* branch?

Jason House jason.james.house at gmail.com
Mon Nov 21 05:43:35 PST 2011


On Nov 21, 2011, at 5:31 AM, Don Clugston <dclugston at googlemail.com> wrote:
> 
> Thanks, you're right!
> 
> Turns out that " : " (with spaces) means "push everything".
> 
> So:
> git push origin : branch1  ---> push everything. The "branch1"
> argument is irrelevant, except that it must exist locally
> git push origin:branch1    --> (this is an error)
> git push origin origin:branch1 --> push currently active branch to
> remote branch1, which must already exist.
> git push origin :branch1   ---> delete remote branch1
> git remote rm branch1     ---> delete config section remote.branch1
> git branch rm branch1     ---> copy branch1 to new branch called 'rm'

... and this is why git is confusing!


More information about the dmd-internals mailing list