March 23, 2017 by Radovan Bast

Show code changes when you edit the Git commit message


Try this next time you want to commit a change:

$ git commit -v

It shows you the diff while you edit the commit message. No more quitting the editor just because you do not remember the name of a variable.

March 30, 2017 by Roberto Di Remigio

Informative Git log


Try this next time you want to commit a change:

$ git log --graph --decorate --pretty=oneline --abbrev-commit

or add it as an alias to your .gitconfig:

lol = log --graph --decorate --pretty=oneline --abbrev-commit

It shows you the log with a text-based graphical representation of the commit history, with information about each commit. Have a look at this screencast!