modified tracked files $ git stash list List all stashed changesets What did I work on recently? Show differences that are not staged yet $ git diff Shows differences between staging and the last file version $ git diff --staged $ git reflog Log of all recent actions 3 Git Tricks—reflog, diff, stash
Shorter version of the git log $ git log -p Show pretty graph of git history $ git log --graph --decorate --pretty=oneline --abbrev-commit $ git rebase [branch] History is becoming cluttered with merge commits Git Tricks—log, blame, rebase $ git blame --date=short [file] Show what revision and author last modified each line 4
Afterwards: fast-forward the master branch □ No merge commits $ git checkout master $ git merge experiment https://git-scm.com/book/en/v1/Git-Branching-Rebasing (MIT) 6 Rebase—execution ▪ git rebase □ Take all the changes that were committed on one branch and replay them on another one □ Please(!) only with local commits