Git 2 cheatsheet
Git 2: Committing
8 common Git 2 tasks.
Stage all changes
Stage every modified, new and deleted file in the current directory and below.
git add .
Change the last commit message
Replace the message of the most recent commit.
git commit --amend -m "New message"
Caution: This rewrites the commit. Avoid it once the commit has been pushed and shared.
View history compactly
Show one line per commit with the branch graph.
git log --oneline --graph --decorate