I created a local branch which I want to 'push' upstream. There is a similar question here on Stack Overflow on how to track a newly created remote branch.
However, my workflow is slightly different. First I want to create a local branch, and I will only push it upstream when I'm satisfied and want to share my branch.
- How would I do that? (my google searches did not seem to come up with anything).
- How would I tell my colleagues to pull it from the upstream repository?
UPDATE With Git 2.0 there is a simpler answer I have written below: https://stackoverflow.com/a/27185855/109305
get fetch --all
fetches the new branches on the remote side (but only aget fetch --prune
deletes locally the references to the deleted remote branches). I think, either this should be set up by them automatically, or you have to talk to them verbally. – peterh