-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
90 lines (90 loc) · 2.84 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
[user]
name = Simon Lindholm
email = [email protected]
[color]
interactive = auto
diff = auto
pager = true
[interactive]
# sudo apt install libterm-readkey-perl / cpan Term::ReadKey
singlekey = true
# diffFilter = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight
[rebase]
autosquash = true
autostash = true
[branch]
sort = -committerdate
[diff]
# Detect renames as well as copies
renames = copies
# compactionHeuristic = true
[push]
# 'git push' should only push the current branch
default = upstream
[alias]
ci = commit
ca = diff --cached
st = status
co = checkout
cob = checkout -b
to = rebase HEAD
fix = commit --amend -C HEAD
amend = commit --amend
pullr = pull --rebase
panic = !tar cvf ../git_panic.tar .
br = branch
la = log --pretty=\"format:%ad %h (%an): %s\" --date=short
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
lgb = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative --simplify-by-decoration
bl = gui blame
mdiff = difftool --no-prompt -t meld
dif = diff
hsow = show
psuh = push
d = diff --patience
rh = reset --hard
rh0 = reset --hard HEAD
rh1 = reset --hard HEAD~
pm = fetch origin master:master
prunebranches = "!git fetch me -p && for branch in `git for-each-ref --format '%(refname) %(upstream:track)' refs/heads | awk '$2 == \"[gone]\" {sub(\"refs/heads/\", \"\", $1); print $1}'`; do git branch -D $branch; done"
showw = show HEAD~
showww = show HEAD~2
showwww = show HEAD~3
showwwww = show HEAD~4
showwwwww = show HEAD~5
showwwwwww = show HEAD~6
showwwwwwww = show HEAD~7
showwwwwwwww = show HEAD~8
showwwwwwwwww = show HEAD~9
showwwwwwwwwww = show HEAD~10
showwwwwwwwwwww = show HEAD~11
showwwwwwwwwwwww = show HEAD~12
showwwwwwwwwwwwww = show HEAD~13
showwwwwwwwwwwwwww = show HEAD~14
showwwwwwwwwwwwwwww = show HEAD~15
showwwwwwwwwwwwwwwww = show HEAD~16
showwwwwwwwwwwwwwwwww = show HEAD~17
showwwwwwwwwwwwwwwwwww = show HEAD~18
showwwwwwwwwwwwwwwwwwww = show HEAD~19
showwwwwwwwwwwwwwwwwwwww = show HEAD~20
showwwwwwwwwwwwwwwwwwwwww = show HEAD~21
showwwwwwwwwwwwwwwwwwwwwww = show HEAD~22
showwwwwwwwwwwwwwwwwwwwwwww = show HEAD~23
showwwwwwwwwwwwwwwwwwwwwwwww = show HEAD~24
showwwwwwwwwwwwwwwwwwwwwwwwww = show HEAD~25
[url "[email protected]:simonlindholm/"]
pushInsteadOf = "https://github.com/simonlindholm/"
[pager]
diff = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less
show = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less
log = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less
branch = false
[color "diff-highlight"]
oldNormal = red
oldHighlight = red bold
newNormal = green
newHighlight = green bold
[core]
excludesfile = ~/.gitignore
[submodule]
recurse = true