-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitconfig
157 lines (128 loc) · 3.22 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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# vim: noet ts=4
[alias]
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
a = add
au = add -u .
ap = add -p
br = branch
bra = branch -a
brv = branch -vv
c = commit
cc = commit -C
cf = commit --fixup
cm = commit -m
ca = commit --verbose --amend
car = commit --verbose --amend --reuse-message=HEAD
cam = commit -am
caa = commit -a --amend
cv = commit --verbose
ch = cherry-pick
cha = cherry-pick --abort
change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f "
co = checkout
cop = checkout -p
cpf = !git show $1 --pretty=format: --name-only | xargs | xsel -ib
count = !git log --pretty=format:'' | wc -l
df = diff
dfs = diff --staged
dft = difftool
dtg = difftool -t gvimdiff
dfc = diff --cached
dfw = diff --color-words
gr = grep -n -I -i --heading --break -e
fe = fetch --prune
fea = fetch --all --tags --prune
files = show --pretty='format:' --name-only
fix-new-lines = "!f() { git ls-files -z | while IFS= read -rd '' f; do tail -c1 < "$f" | read -r _ || echo >> "$f"; done }; f"
lc = log --pretty=oneline --decorate=full --stat --no-merges ORIG_HEAD..
lg = log -p
logp = log --pretty=oneline --decorate=full
ll = log --pretty=format:'%h %cn %s' --decorate=full
ls = status
p = pull
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rbs = rebase --skip
rbi = rebase -i
rv = revert
mt = mergetool -t vimdiff
mtg = mergetool -t gvimdiff
show-conflicts = diff --name-only --diff-filter=U
st = status -sb
sta = status --ignored
su = submodule update
sui = submodule update --init
sur = submodule update --recursive
undo = reset HEAD^
unstash = stash apply
who = shortlog -s --
x = push
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim `f`"
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
jshint = "!git status -uno -s | cut -f3 -d' ' | ack-grep '.js$' | xargs jshint"
jsfix = "!f() { git ls-files | xargs jshint | cut -d':' -f1 | sort -u | xargs ; }; vim `f`"
[color]
status = auto
diff = auto
branch = auto
interactive = auto
grep = auto
whitespace = magenta reverse
[color "branch"]
current = magenta
local = cyan
remote = cyan
[color "decorate"]
branch = green
remoteBranch = green
tag = magenta
HEAD = magenta
[color "diff"]
meta = blue
frag = yellow
old = red
new = green
whitespace = magenta reverse
[color "grep"]
match = black cyan bold
filename = blue
[color "status"]
header = yellow
added = green
changed = red
untracked = red bold
[diff]
tool = vimdiff
[difftool]
prompt = false
[github]
user = jtheoof
[mergetool "sublime"]
cmd = sublime -w $MERGED
trustExitCode = false
[merge]
tool = vimdiff
[push]
default = current
[user]
name = Jeremy Attali
email = contact@jtheoof.me
[grep]
extendedRegexp = true
[gc]
auto = 0
[core]
editor = nvim
[rebase]
autoSquash = true
autoStash = true
updateRefs = true
[pull]
rebase = true
[includeIf "gitdir:~/dev/ubisoft/"]
path = .gitconfig-ubisoft
[includeIf "gitdir:~/dev/gitlab-ncsa.ubisoft.org/"]
path = .gitconfig-ubisoft
[advice]
skippedCherryPicks = false