Skip to content

Instantly share code, notes, and snippets.

@asears
Created January 6, 2026 00:45
Show Gist options
  • Select an option

  • Save asears/5bf43d8a62dc7b193ece146fb942c475 to your computer and use it in GitHub Desktop.

Select an option

Save asears/5bf43d8a62dc7b193ece146fb942c475 to your computer and use it in GitHub Desktop.
Git Rebase
# Few helpful rebase commands
git config --global core.editor=code
git config --global sequence.editor=code --wait --reuse-window
# Find the divergent commit
git merge-base --fork-point main
# Interactive rebase
git rebase -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment