configure git to not push all remote tracking branches
- From
- Justin Johnson <justin.johnson3@gmail.com>
- Date
- Dec 9, 2011, 15:00 UTC
- Message-ID
- <CAPD5EOjsu-9=CCUJut_bGqv=asp8FeGqL2GhKewgw3SQsArk_A@mail.gmail.com>
Hi, I'm looking for some help with pushing to remote repositories. I accidentally left out the refspec from my git push command and git pushed all branches that are set up to track the remote repo that I specified. I would like to disable this, and enforce specifying a refspec. Is there a way to do this? e.g. git push alternateorigin should not do anything, but git push alternateorigin mybranch should push just mybranch. -- Justin Johnson