Skip to content

Instantly share code, notes, and snippets.

@aledpardo
Created November 19, 2017 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aledpardo/43bd22225cb6783fb4544ab35225a987 to your computer and use it in GitHub Desktop.
Save aledpardo/43bd22225cb6783fb4544ab35225a987 to your computer and use it in GitHub Desktop.
git rebasing
From:
https://dev.to/maxwell_dev/the-git-rebase-introduction-i-wish-id-had
Simple flow
git checkout master
git checkout feature/branch
git rebase master
git push --force-with-lease
Handle rebasing conflicts
git status
git add
git commit
git rebase --continue
git push --force-with-lease
Shitty things happens
git rebase --abort
git rebase --skip
Interactive
git rebase -i master
Squash
git rebase -i --autosquash master
Fixing up a commit
git commit --fixup <commitID>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment