Skip to content

Instantly share code, notes, and snippets.

@vyspiansky
Created September 12, 2024 09:10
Show Gist options
  • Save vyspiansky/1e1fce61098c2bd89f6a802e6725ffc0 to your computer and use it in GitHub Desktop.
Save vyspiansky/1e1fce61098c2bd89f6a802e6725ffc0 to your computer and use it in GitHub Desktop.
Git rebase by default

This technique updates your local branch and then "replays" your changes on top, effectively putting your changes at the head of the branch.

Enable

git config --global pull.rebase true

Disable

git config --global pull.rebase false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment