Skip to content

Instantly share code, notes, and snippets.

@mgamba
Last active August 29, 2015 14:00
Show Gist options
  • Save mgamba/c22df15c0499fc30b0ae to your computer and use it in GitHub Desktop.
Save mgamba/c22df15c0499fc30b0ae to your computer and use it in GitHub Desktop.
git config file
[user]
name = <YOUR> <NAME>
email = <YOUR EMAIL>
[github]
user = <YOUR HANDLE>
[alias]
st = status
c = commit
ci = commit
b = branch
br = branch
co = checkout
ciff = diff --cached
list = log --pretty='%n%C(white)%h%C(green) %ad %C(yellow)%aN %C(white)%s %C(red)%d%Creset' --date=short --name-only -5
l = log --pretty='%C(white)%h%C(green) %ad %C(yellow)%aN %C(white)%s %C(red)%d%Creset' --date=short -10
g = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
v = "remote -v"
files = "show --name-only --pretty=format:''"
[color]
ui = auto
[core]
editor = /usr/bin/vim
excludesfile = ~/.gitignore_global
@mgamba
Copy link
Author

mgamba commented Feb 18, 2015

reset colors ... needed for newer versions of git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment