Instantly share code, notes, and snippets.
Treat git log as a book, exec git next or git prev to checkout the next or the previous commit.
alias git diff to make a quick diff between current commit with the previous commit:
git config --global alias.df 'diff HEAD^ HEAD'
Thank you. But I think #!/bin/sh is more compatible. Please check : https://superuser.com/questions/1133187/when-must-i-use-bin-bash-and-when-bin-sh