-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
100 lines (98 loc) · 3.09 KB
/
config
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
91
92
93
94
95
96
97
98
99
100
# https://git-scm.com/docs/git-config
[alias]
br = branch
cb = !git rev-parse --abbrev-ref HEAD
ci = commit
co = checkout
dbr = !bash -c 'set -o pipefail && git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null|cut -d / -f 4-||git remote show origin 2>/dev/null|awk \"/HEAD branch/ {print \\$NF}\"||echo main'
df = diff
g = grep -I
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
lg = log -p
pp = !git pull && git push
pullf = !git fetch origin && git reset origin/$(git branch --show-current) --hard
pushf = push --force-with-lease
resethistory = !git status && d=$(mktemp) && dbr=$(git dbr) && mv .git/config ${d} && rm -rf .git/ && git init && mv ${d} .git/config && git add . && git commit -m 'Re-import' && git branch -m ${dbr} && git branch --unset-upstream 2>/dev/null || true && git status && git push --force && git branch --set-upstream-to=origin/${dbr} ${dbr}
start = !git pull -q --autostash && git checkout -q $(git dbr) && git push -q && git clean -qd --force && git status
sync = !git checkout --detach --quiet HEAD && git fetch origin $(git dbr):$(git dbr) && git checkout --quiet -
undocommit= reset HEAD~
[apply]
whitespace = fix
[branch]
sort = -committerdate
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
autocrlf = input
editor = vim
whitespace = fix,space-before-tab,tab-in-indent,trailing-space
excludesfile = ~/.config/git/gitignore
# https://stackoverflow.com/a/49862151
#pager = less -FR
# Delta
# https://dandavison.github.io/delta/configuration.html
pager = delta
# Delta
# https://dandavison.github.io/delta/configuration.html
[interactive]
diffFilter = delta --color-only --features=interactive
[delta]
features = decorations
[delta "interactive"]
keep-plus-minus-markers = false
[delta "decorations"]
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax
[init]
defaultBranch = main
[merge]
log = true
[pull]
rebase = true
[push]
default = upstream
[rerere]
enabled = 1
[user]
name = andornaut
email = [email protected]
[url "[email protected]:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "[email protected]:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[url "[email protected]:"]
insteadOf = "heroku:"
[web]
browser = google-chrome
[includeIf "gitdir/i:biniambekele/"]
path = config.biniambekele
[includeIf "gitdir/i:wmgtech*/"]
path = config.wmg
[submodule]
recurse = true