Created
October 27, 2015 18:41
-
-
Save xCASx/37df135290a6796723c8 to your computer and use it in GitHub Desktop.
Commands for git pull --rebase strategy by default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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