Professional Documents
Culture Documents
Log
diff
git log --oneline
git diff --staged
git log --stat
# what has changed in this file from last commit
git log --name-status
git diff HEAD~1..HEAD file.txt
git log --follow --pretty=format:'%an (%ae)'
# compares file from current branch to master
file.c | sort | uniq
git diff HEAD..master file.txt
# compares the stash against the commit it is
based on
git diff stash@{0}^!
# see the most recent stash
git stash show -p
git stash show -p stash@{0}
cheatography.com/alexandreceolin/