REBASE:
git rebase -i HEAD~3 > pulls up the latest 3 commits
[INSERT] Edit the interactive screen
[ESC]
[Shift :]
wq! > saves and exits
git log view new rebased log
git push -f origin bug/sample-1000 > pushes latest changes to origin
RESET:
git reset --hard HEAD~1 > undo prior commit and delete it
git reset --soft HEAD~1 > undo prior commit and keep changes
No comments:
Post a Comment