Rebase last N commits interactively

Squash, reorder or edit the last 5 commits

git rebase -i HEAD~5

tool
git45 commands
tags
gitrebasehistory

More git commands

  • git cherry-pick abc1234

    Apply one specific commit from another branch

  • git stash push -m "WIP: feature X"

    Save your current changes to the stash with a clear message

  • git stash list

    Show all stashed sets of changes

  • git stash apply stash@{2}

    Apply a specific stash entry and keep it in the list

  • git bisect start && git bisect bad && git bisect good v1.0

    Start a binary search between v1.0 and the current commit

all 45 git commands