-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgitconfig
More file actions
108 lines (90 loc) · 2.56 KB
/
gitconfig
File metadata and controls
108 lines (90 loc) · 2.56 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
[user]
name = Thomas Bonnin
email = 233326+TBonnin@users.noreply.github.com
signingkey = D6A3BBC2F6975E17
[credential]
helper = osxkeychain
[github]
user = TBonnin
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[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
[core]
pager = less -FRSX
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
editor = nvim
autocrlf = false
native = true
[alias]
s = status
ci = commit -S -v
amend = commit --amend -C HEAD
co = checkout
cb = "!f() { git checkout -b \"$1\" 2>/dev/null || git checkout \"$1\"; }; f"
ct = "!f() { git fetch && git co -b $1 origin/$1; }; f"
b = branch
w = whatchanged
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
uncommit = reset --soft HEAD^
d = diff HEAD
rp = pull --rebase
cof = "!checkout_fzf() { git branch | fzf | xargs git checkout; }; checkout_fzf"
res = "!restore_fzf() { git diff HEAD --name-only | fzf | xargs git restore; git status; }; restore_fzf"
uns = "!unstage_fzf() { git diff --staged --name-only | fzf | xargs git restore --staged; git status; }; unstage_fzf"
a = "!add_fzf() { git status --short | awk '{print $2}' | fzf | xargs git add; git status; }; add_fzf"
com = "!checkout_main() { git co main 2>/dev/null || git co master; }; checkout_main"
ap = add -p
ai = add -i
br = "!browse() { git config remote.origin.url | xargs open; }; browse"
[diff]
tool = vimdiff
algorithm = patience
renamelimit = 0
renames = true
indentHeuristic = true
[diff "localizablestrings"]
textconv = "iconv -f utf-16 -t utf-8"
[difftool]
prompt = false
[merge]
summary = true
keepBackup = false
keepTemporaries = false
tool = vimdiff
[mergetool]
keepBackup = false
keepTemporaries = false
trustExitCode = false
[mergetool "vimdiff"]
cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[push]
default = current
[rebase]
autostash = true
[stash]
showPatch = true
[commit]
gpgsign = true
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process