Git Rebase by Default

When working on a project with multiple developers it’s a good idea to always rebase when you pull.

git pull --rebase

But if you would like to rebase by default, you can add it to your global .gitconfig file by running this command:

git config --global pull.rebase true

Hope this saves you some time!

2 thoughts to “Git Rebase by Default”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.