-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.gitconfig
52 lines (45 loc) · 1.43 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
[alias]
ci = commit
co = checkout
st = status -sb
sti = status -sb --ignored
b = branch
merge = merge --no-commit
lg1 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
lg2 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit
lg3 = !"git log --show-signature"
lg = !"git lg1"
change = codereview change
gofmt = codereview gofmt
mail = codereview mail
pending = codereview pending
submit = codereview submit
sync = codereview sync
[color]
ui = auto
interactive = true
branch = true
diff = true
status = true
[pull]
ff = only
[merge]
tool = ediff
# Always use ssh instead of http for go get.
[url "[email protected]:"]
insteadOf = https://github.com/
[url "[email protected]:"]
insteadOf = https://bitbucket.org/
[url "[email protected]:"]
insteadOf = https://gitlab.com/
[include]
path = ~/.gitconfig.local
[core]
excludesfile = ~/.gitignore.global
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[init]
defaultBranch = main