Skip to content
Snippets Groups Projects
Forked from R3 / school / courses
667 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
rebase-iIntro.md 487 B

Interactive Rebasing

git rebase -i <branch>
  • Enables more precise control over the rebased commits
  • Before committing many actions are at disposal
#  p, pick = use commit
#  r, reword = use commit, but edit the commit message
#  e, edit = use commit, but stop for amending
#  s, squash = use commit, but meld into previous commit
#  f, fixup = like "squash", but discard this commit's log message
#  x, exec = run command (the rest of the line) using shell