-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
80 lines (80 loc) · 1.94 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[user]
name = Vijay Dev
email = "(none)"
[alias]
st = status
co = checkout
w = whatchanged
ci = commit
ca = commit --amend
can = commit --amend --no-edit
chp = cherry-pick
b = branch
d = diff --cached
ds = diff --stat
au = add -u
s = show -s --pretty='tformat:%h (%s, %ad)' --date=short
l = log --oneline
ln = log --oneline --no-merges
logs = log --stat
logp = log -p
unadd = reset HEAD
hh = reset --hard ORIG_HEAD
dd = checkout @{-1}
latest = for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short)'
dag = log --graph --format='format:%C(yellow)%h%C(reset) %C(blue)\"%an\" <%ae>%C(reset) %C(magenta)%cr%C(reset)%C(auto)%d%C(reset)%n%s' --date-order
shorten = "!bash -c 'curl -i http://git.io -F url=$1' -"
amd = !git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - --amend
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
f = "!git ls-files | grep -i"
[apply]
whitespace = fix
[diff]
mnemonicprefix = true
tool = diffmerge
[advice]
statusHints = false
[core]
excludesfile = ~/.gitignore
pager = less
[rerere]
enabled = 1
[merge]
tool = diffmerge
[mergetool "diffmerge"]
cmd = diffmerge --merge\n--result=$MERGED $LOCAL $BASE $REMOTE
trustExitCode = true
[difftool "diffmerge"]
cmd = diffmerge $LOCAL $REMOTE
[help]
autocorrect = 5
[amazon]
append-cr-url = true
pull-request-by-default = true
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[filter "trimWhitespace"]
clean = git-stripspace
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[url "[email protected]:"]
insteadOf = gh:
[filter "lfs"]
clean = git lfs clean %f
smudge = git lfs smudge %f
required = true