Skip to content

Instantly share code, notes, and snippets.

@dfevre
Last active May 19, 2017 06:45
Show Gist options
  • Save dfevre/3735383 to your computer and use it in GitHub Desktop.
Save dfevre/3735383 to your computer and use it in GitHub Desktop.
Favourite git aliases
git config --global alias.lg "log --graph --pretty=format:'%C(bold blue)%h%C(reset) -%C(auto)%d%Creset %C(white)%s%C(reset) %Cgreen(%cr) %C(dim white)%an%Creset' --abbrev-commit --date=relative"
# this one sets Notepad++ as the git editor on Windows. Requires the npp.sh file from https://gist.github.com/3735365#file_npp.sh
git config --global core.editor ~/npp.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment