-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
112 lines (102 loc) · 2.9 KB
/
Copy path.gitconfig
File metadata and controls
112 lines (102 loc) · 2.9 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[user]
name = Noah Grant
email = foolproofnoah@gmail.com
[core]
[merge]
tool = vimdiff
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
pager = less -R
#compression = 6
[remote "origin"]
#fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
#remote = origin
#merge = refs/heads/master
[color]
diff = auto
branch = auto
ui = auto
[color "status"]
header = normal
added = magenta yellow
updated = green reverse
changed = red bold
untracked = blue
nobranch = red white bold
[alias]
s = status
ss = status --short
b = branch
ba = branch -a -v -v
ci = commit
co = checkout
d = diff -C
ds = diff -C --stat
dsp = diff --color | diff-so-fancy
dw = diff -C --color-words
l = log -C --decorate
ls = log -C --stat --decorate
lsp = log -C --stat -p --decorate
lg = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s'
lga = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all
lol = log --pretty=oneline --abbrev-commit --graph --decorate
# this is the most commonly used one, it turns out!
l19 = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all -19
# and this one can be a real lifesaver on a complex tree
lsd = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all --simplify-by-decoration
ltree = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all --abbrev-commit --date=relative --stat=200,200 -C
rh = reset --hard
ru = remote update
# "show-branch -g=N" can't be aliased for N easily, so we stop here:
sb = show-branch --sha1-name
ls-del = ls-files -d
ls-mod = ls-files -m # this will include deleted files also
ls-new = ls-files --exclude-standard -o
# this one is a MUST have
ls-ign = ls-files --exclude-standard -o -i
ka = !gitk --all
kdo = !gitk --date-order
kado = !gitk --all --date-order
kasd = !gitk --all --simplify-by-decoration
[clean]
requireForce = false
[rerere]
#enabled = 1
[diff]
#mnemonicprefix = true
#tool = meld
[merge]
#tool = meld
[gui]
#editor = gvim
[guitool "edit"]
#cmd = gvim -f $FILENAME
#noconsole = yes
#needsfile = yes
[push]
#default = matching
# http://jorudolph.wordpress.com/2010/01/28/configuring-git-and-mercurial-to-use-diffmerge/
[mergetool "diffmerge"]
#cmd = diffmerge --merge --result=$MERGED $LOCAL $BASE $REMOTE
#trustExitCode = true
[diff]
#tool = diffmerge
[difftool "diffmerge"]
#cmd = diffmerge \"$LOCAL\" \"$REMOTE\"
[branch]
autosetuprebase = always
[push]
default = current
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[submodule]
recurse = true
[pack]
windowMemory = 100m