-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
87 lines (73 loc) · 1.9 KB
/
gitconfig
File metadata and controls
87 lines (73 loc) · 1.9 KB
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
[push]
default = current
autoSetupRemote = true
[color]
branch = auto
diff = auto
status = auto
ui = true
[user]
name = Micke Lisinge
email = hi@micke.me
signingkey = 6EE5BDCF7EB16E6261963766F4930F1F5BE28623
[merge]
defaultToUpstream = true
ff = only
[alias]
aa = add --all
ap = add --patch
ci = commit
co = checkout
st = status -sb
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
pp = !git pull && git push
ctags = !.git/hooks/ctags
pushu = "!git push -u origin $(git rev-parse --abbrev-ref HEAD)"
pu = pushu
pr = "!git pushu; gh pr create -w"
p-r = "!git pushu; gh pr create -w"
pf = push --force-with-lease
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
cm = "!git checkout $(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')"
fixdefault = remote set-head origin --auto
[github]
user = micke
[init]
templatedir = ~/.git_template
defaultBranch = main
[pull]
rebase = true
twohead = ort
[core]
excludesfile = ~/.gitignore
# editor = nvr --remote-tab-wait-silent +'set bufhidden=delete'
autocrlf = input
pager = diff-so-fancy | less --tabs=4 -RFX
[commit]
gpgsign = true
verbose = true
[fetch]
prune = true
[rebase]
autosquash = true
autoStash = true
[diff]
colorMoved = zebra
# diff-so-fancy
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 11
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[diff "sops"]
textconv = sops -d
cachetextconv = false
[includeIf "gitdir:micke/home-cluster/"]
path = ~/.gitconfig.home-cluster