This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
71 lines (57 loc) · 1.47 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
# vim: set ft=gitconfig noet:
[include]
path = ~/.gitconfig-user
# this will only be used on machines where I use different identities (see work)
[includeIf "gitdir:~/github/"]
path = ~/.gitconfig-oss
[alias]
st = status
co = checkout
br = branch
reb = rebase
last = show --stat HEAD
logdel = log --diff-filter=D --summary
countcommits = shortlog -sn --no-merges
countcommitsall = shortlog -sn
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
signlast = commit -s --amend
cl = "!f() { git log $1..$2 --no-merges --pretty=format:'%h|%s' | awk -F '|' '{ printf \"%s : %s\\n\", $1, $2}'; }; f"
clu = "!f() { git log $1..$2 --no-merges --pretty=format:'%h|%an|%s' | awk -F '|' '{ printf \"%s %-20.20s %s\\n\", $1, $2, $3 }'; }; f"
clh = "!f() { git log $1..$2 --no-merges --pretty=format:'%h'; }; f"
tl = "!f() { git tag | sort -V; }; f"
[core]
preloadindex = 1
excludesfile = ~/.gitignore-global
[init]
defaultBranch = main
[color]
branch = auto
diff = auto
interactive = auto
status = auto
grep = yes
[merge]
tool = vimdiff
log = true
[pull]
rebase = true
[push]
default = current
[help]
autocorrect = 1
[branch]
autosetuprebase = always
[branch "master"]
remote = origin
merge = master
autosetuprebase = always
rebase = true
[branch "main"]
remote = origin
merge = main
autosetuprebase = always
rebase = true
[log]
decorate = full
[diff]
rename = copies