- Fixing the last commit
commit --amend
-
What is HEAD, and usage of ~
-
Removing commits
reset (soft, hard)
- Displaying all interactions
reflog
- Going back to a commit that was reset
reset <commit_hash>
- Updating the commit message of a commit from anywhere on the logs
interactive rebase: reword
- Updating changes from a commit from anywhere on the logs
commit --fixup and interactive rebase: fixup
- Pushing re-written history to remote
push -f