public
Last active

.gitconfig

  • Download Gist
.gitconfig
INI
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
[color]
diff = auto
status = auto
branch = auto
[color "branch"]
current = yellow reverse
local = yellow
[color "diff"]
meta = yellow
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[user]
name = <Your Name Here>
email = <Your Email Address Here>
[status]
relativePaths = false
[core]
excludesfile = </Path/to/home/directory/.gitignore>
pager = less -FRSX
[alias]
d = diff
dc = diff --cached
lc = log ORIG_HEAD.. --stat --no-merges
gl = log --decorate --stat --graph --pretty=format:'%C(yellow)%h%Creset (%ar - %Cred%an%Creset), %s%n'
st = status -sb
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git
prune-all = !git remote | xargs -n 1 git remote prune
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
[github]
user = <Your User Name Here>
token = <Your token Here>

very cool. I also use
co = checkout
ci = commit

because I am used to those svn aliases

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.