-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
72 lines (58 loc) · 2.08 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
[user]
email = [email protected]
name = Mads Kristiansen
signingkey = D2E718965B4E5795!
[commit]
#gpgsign = true
[core]
pager = delta
editor = nvim
[color]
ui = true
[interactive]
diffFilter = delta --color-only --line-numbers
[include]
path = ~/.config/git/deltatheme/themes.thTheme
[delta]
navigate = true # use n and N to move between diff sections
#light = false # set to true if you're in a terminal w/ a light background color
dark = true
line-numbers = true
#syntax-theme = default
zero-style = syntax dim
minus-style = syntax bold auto
features = Kanagawa
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[pull]
rebase = true
[push]
autoSetupRemote = true
[alias]
# list aliases
aliases = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\ \t => \\2/' | sort
# show git log history
g = !git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %C(bold blue)<%an>%Creset %Cgreen(%cr)%Creset %s' --abbrev-commit --date=relative --all
# small log output
l = !git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %C(bold blue)<%an>%Creset %Cgreen(%cr)%Creset %s' --abbrev-commit --date=relative
la = !git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %C(bold blue)<%an>%Creset %Cgreen(%cr)%Creset %s' --abbrev-commit --date=relative --all
lag = !git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %C(bold blue)<%an>%Creset %Cgreen(%cr)%Creset %s' --abbrev-commit --date=relative --all --graph
# commit with a message
cm = commit -m
# list all branches
b = branch -avv
# status
s = status
# push
p = push
# clean interactive
ci = clean -i
change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f"
[github]
user = Hexamo
; [includeIf "gitdir:~/git/work/"]
; path = .gitconfig-work
[includeIf "gitdir:~/git/personal/"]
path = .gitconfig-personal