Skip to content

Instantly share code, notes, and snippets.

@dfevre
Last active November 4, 2025 00:15
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(cyan)%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