branch

Stop git from pushing a local secret branch

Git will end up pushing every branch to remote at some point. If you have a branch that should only remain local and never be pushed, it can be singled out so that it simply cannot be pushed.

NB: This does not stop a fork of the branch from being pushed, only the specifically named branch.

git config branch.[branch not to allow].remote no_push

Subscribe to RSS - branch