Actions

EmSys

Git - Viewing the Commit History

From EdWiki

Git - Viewing the Commit History

  • View SHA1 of a commit
git rev-list HEAD^..HEAD
  • View logs
git log
git log HEAD~4..HEAD
git log –pretty=oneline v1.0..v2.0 | wc-l
git log --raw -r --abbrev=40 –pretty=oneline origin..HEAD
git archive --format=tar --prefix=project/ HEAD | gzip >latest.tar.gz
git blame <filename>