Skip to content

Instantly share code, notes, and snippets.

@yonzin
Last active June 27, 2024 13:06
Show Gist options
  • Save yonzin/f7e0a506113a1b7e06caecdf684b83b4 to your computer and use it in GitHub Desktop.
Save yonzin/f7e0a506113a1b7e06caecdf684b83b4 to your computer and use it in GitHub Desktop.
git rebase onto
git rebase $1~ --onto $2;
$1 = first commit branch
$2 = rebased branch
ex: git rebase 118689f~ --onto origin/main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment