Created
November 19, 2017 18:49
-
-
Save aledpardo/43bd22225cb6783fb4544ab35225a987 to your computer and use it in GitHub Desktop.
git rebasing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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