Skip to content

Instantly share code, notes, and snippets.

@xCASx
Created October 27, 2015 18:41
Show Gist options
  • Save xCASx/37df135290a6796723c8 to your computer and use it in GitHub Desktop.
Save xCASx/37df135290a6796723c8 to your computer and use it in GitHub Desktop.
Commands for git pull --rebase strategy by default
# Force all new branches to automatically use rebase
git config --global branch.autosetuprebase always
# This will tell git to always pull with rebase.
git config --global --bool pull.rebase true
# After these two commands ~/.gitconfig will look like this:
[branch]
autosetuprebase = always
[pull]
rebase = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment