Skip to content

Instantly share code, notes, and snippets.

@ebouchut
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebouchut/02702251cbf07d218507 to your computer and use it in GitHub Desktop.
Save ebouchut/02702251cbf07d218507 to your computer and use it in GitHub Desktop.
git push.default: Which branch(es) to (implicitely) push by default
git config `push.default`:
– `nothing`: do nothing (make the user say what they mean)
– `matching`: push all local branches for which a remote branch of the same name exists
– `upstream`: push only the current branch, push it to its upstream, making push and pull symmetric
– `simple`: like upstream, but only if the branch names match (will become default in 2.0)
– `current`: push just the current branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment