Skip to content

Instantly share code, notes, and snippets.

@quagliero
Created October 28, 2014 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quagliero/ea10190d31dd6a3cf173 to your computer and use it in GitHub Desktop.
Save quagliero/ea10190d31dd6a3cf173 to your computer and use it in GitHub Desktop.
.gitconfig
[user]
name = <name>
email = <email>
[color]
ui = true
[alias]
changes = diff --name-status -r
new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
diffstat= diff --stat -r
untracked= ls-files . --exclude-standard --others
pretty = log --pretty=format:'%C(yellow)%h%Cred%d%Creset - %C(cyan)%an %Creset: %s %Cgreen(%cr)' --decorate --graph --abbrev-commit --all
lg = log --pretty=format:'%C(yellow)%h%Cred%d%Creset - %C(cyan)%an %Creset: %s %Cgreen(%cr)' --all
[push]
default = simple
[core]
editor = vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment