Show Menu
Cheatography

Git Power Commands Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

UNDO

git reset --soft
Undo Last Commit
git commit --amend
Merge current staged changes with the last commit.
git commit --amend
Edit commit message for the last commit.

LOG

git log --pret­ty=­oneline
Pretty oneline Log
git log --oneline --decorate --graph --all
Nice looking Log with graph

Tags

git tag
List all tags for the current reposi­tory.
git describe
Show current tag name.