-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
45 lines (40 loc) · 1.51 KB
/
gitconfig
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
38
39
40
41
42
43
44
45
[user]
email = mpercy@apache.org
name = Michael Percy
[diff]
guitool = meld
tool = sdiff
[difftool "sdiff"]
cmd = sdiff -w 100 -s \"$LOCAL\" \"$REMOTE\"
# from http://j-query.blogspot.com/2011/03/adding-colors-to-git-diff-by-default.html
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = red
local = blue
remote = green
[color "diff"]
meta = yellow bold
frag = blue
old = red
new = green
[color "status"]
added = blue
changed = green
untracked = magenta
[alias]
dt = difftool -g -d
vimdiff = difftool -d
lgo = log --graph --pretty=format:'%h %d %s - %an (%ci)'
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(blue)%d%Creset %s - %an %Cgreen(%cr)%Creset' -n15
lgs = log --graph --pretty=format:'%Cred%h%Creset -%C(blue)%d%Creset %s - %an %Cgreen(%cr)%Creset' -n5 --stat
stat = status --untracked-files=no
br = for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:red)%(objectname:short)%(color:reset) %(color:blue)%(refname:short)%(color:reset)\t %(contents:subject) - %(authorname) %(color:green)(%(committerdate:relative))%(color:reset)'
bro = for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(objectname:short) %(refname:short)\t %(contents:subject) - %(authorname) (%(committerdate:rfc))'
oldest-ancestor = !bash -c 'diff -u <(git rev-list --first-parent "${1:-master}") <(git rev-list --first-parent "${2:-HEAD}") | sed -ne \"s/^ //p\" | head -1' -
[push]
default = current
[http]
cookiefile = /home/mpercy/.gitcookies