git rebase -i 07631121ef7b2d8e850c6cdd744ca202d68ad654^ #replace numbers with SHA-1 of your commit
# use X for deleting chars
# use A for entering INSERT mode
# replace `pick` with `edit`
# press ESC to exit INSERT mode
# press `:wq` for Save & Exit
git reset HEAD^
git add ...
git commit -m "First part"
git add ...
git commit -m "Second part"
git rebase --continue
git push origin branchname -f
Last active
April 24, 2017 09:50
-
-
Save ihorzenich/34621c98b2d32da39ca8e0a0cee17d7f to your computer and use it in GitHub Desktop.
Edit last pushed commit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment