-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
133 lines (112 loc) · 3.12 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
[user]
name = Nicolas Baccelli
email = [email protected]
[alias]
tagcommit = !sh -c 'git rev-list $0 | head -n 1'
accept-ours = "!f() { files=\"$@\"; [ -z $files ] && files='.'; git checkout --ours -- $files; git add -u $files; }; f"
accept-theirs = "!f() { files=\"$@\"; [ -z $files ] && files='.'; git checkout --theirs -- $files; git add -u $files; }; f"
br = branch
ci = commit
co = checkout
com = checkout master
grep = grep -Ii
gr = grep -Ii
#grep_all = !sh -c 'git rev-list --all | xargs git grep -e $0'
df = diff
fe = fetch origin
hr = reset origin/master --hard
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset%Cblue [%cn]' --abbrev-commit --date=relative
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
lc = !git meld ORIG_HEAD.. --stat --no-merges
me = config user.name
meld = !git-meld
next = "!sh -c 'git log --reverse --pretty=%H master | awk \"/$(git rev-parse HEAD)/{getline;print}\" | xargs git checkout'"
prev = checkout HEAD^1
st = status
today = !git log --since='12am' --committer=\"`git me`\"
today-all = !git log --since='12am'
amend = commit --amend
switch = !legit switch
branches = !legit branches
harvest = !legit harvest
# undo local changes
undo = checkout --
undoreset = !git reset HEAD@{1}
# remove staged changes from the index: (1) provide file name/pattern (2) otherwise, removes all
unstage = reset HEAD --
# list untracked files
showtool = "!showci () { rev=${1:-HEAD}; git meld $rev~1 $rev; }; showci $1"
graph = log --oneline --graph
oneline = log --oneline
d = =
m = =
[color]
branch = auto
diff = auto
status = auto
ui = true
interactive = 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
[merge]
stat = true
tool = vimdiff
conflictStyle = diff3
[mergetool "vimdiff"]
path = nvim
prompt = false
keepBackup = false
keepTemporaries = false
[mergetool]
keepBackup = false
keepTemporaries = false
prompt = false
[push]
default = current
[branch]
autosetuprebase = always
[help]
autocorrect = 30
[diff]
mnemonicPrefix = true
wordRegex = .
algorithm = histogram
tool = vimdiff
[difftoog "vimdiff"]
prompt = false
path = nvim
[status]
submoduleSummary = true
[grep]
extendedRegexp = true
lineNumber = true
[log]
abbrevCommit = true
[core]
editor = nvim
whitespace = -trailing-space
excludesfile = ~/.gitignore_global
[credential]
helper = cache --timeout=3600
[gui]
editor = nvim
[rebase]
autosquash = true
# for fixup hotness later
[rerere]
enabled = true
autoupdate = true
# Reuse recorded resolution of conflicted merges
# see `man git-rerere'