-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
60 lines (52 loc) · 1.67 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
[user]
name = Paul Golter
email = paulgolter.de@gmail.com
[init]
defaultBranch = main
[color]
ui = true
[pull]
rebase = true
[push]
default = simple
autoSetupRemote = true
[rebase]
autostash = true
[alias]
co = "checkout"
cp = "cherry-pick"
ff = "merge --ff-only"
fa = "fetch --all"
mt = "mergetool"
up = "checkout @~1"
st = "status --ignore-submodules=none"
car = "commit --amend --reset-author"
rbi = "rebase -i"
rbc = "rebase --continue"
rba = "rebase --abort"
tpush = "!git push && git push --tags"
out = "log @{u}.. --pretty=oneline"
head = "show HEAD"
unstash = "stash pop"
authors = "!f() { git log --since 'now - 1 year' \"$@\" | grep ^Author | sed 's/Author: //' | sed 's/<.*>//' | sort -f | uniq -ci | sort -nr | nl -s '' | sort -nr; } ; f"
glog = "log --all --graph --abbrev-commit --decorate --date=short --format=format:'%C(bold blue)%h%C(reset) %C(green)(%ad)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(dim magenta)%d%C(reset)'"
onelog = "log --abbrev-commit --decorate --date=short --format=format:'%C(bold blue)%h%C(reset) %C(green)(%ad)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(dim magenta)%d%C(reset)'"
ver = "log --oneline -n 1 --no-abbrev"
[core]
longpaths = true
# pager = diff-so-fancy | less --tabs=4 -RFX
# [interactive]
# diffFilter = diff-so-fancy --patch
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 11
frag = magenta bold
func = 146 bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse