Skip to content

Instantly share code, notes, and snippets.

@ernstki
Created April 24, 2018 21:12
Show Gist options
  • Save ernstki/2e392205bade93fa5a1f886e9effda00 to your computer and use it in GitHub Desktop.
Save ernstki/2e392205bade93fa5a1f886e9effda00 to your computer and use it in GitHub Desktop.
.gitconfig essentials
# Use 'vimdiff' as the diff tool. See also git-diff(1)
# '-y' means don't prompt for every invocation
git config --global alias.vimdiff 'difftool -y -t vimdiff'
# A concise, formatted commit log
# Source: https://www.youtube.com/watch?v=W39CfI3-JFc
git config --global alias.lol 'log --graph --all --decorate --oneline'
# Colorize output (really helpful)
# Source: https://rogerdudler.github.io/git-guide/#hints
git config --global color.ui true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment