git: clean up config
This commit is contained in:
parent
7ad9868c20
commit
478d0e33d0
1 changed files with 87 additions and 81 deletions
146
.gitconfig
146
.gitconfig
|
@ -1,47 +1,22 @@
|
||||||
[core]
|
|
||||||
excludesfile = "~/.gitignore"
|
|
||||||
pager = delta
|
|
||||||
compression = 3
|
|
||||||
looseCompression = 3
|
|
||||||
|
|
||||||
[pack]
|
|
||||||
threads = 0
|
|
||||||
compression = 3
|
|
||||||
|
|
||||||
[user]
|
|
||||||
useConfigOnly = true
|
|
||||||
|
|
||||||
[column]
|
|
||||||
ui = auto
|
|
||||||
|
|
||||||
[push]
|
|
||||||
default = tracking
|
|
||||||
|
|
||||||
[branch "main"]
|
|
||||||
rebase = true
|
|
||||||
|
|
||||||
[branch "master"]
|
|
||||||
rebase = true
|
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
b = branch -va
|
b = branch -va
|
||||||
cl = clone --filter=blob:none
|
cl = clone --filter=blob:none
|
||||||
|
co = checkout
|
||||||
d = diff --stat -p -C --color-words
|
d = diff --stat -p -C --color-words
|
||||||
dg = diff --stat -p -C
|
|
||||||
ds = diff --staged --stat -p -C --color-words
|
ds = diff --staged --stat -p -C --color-words
|
||||||
sh = show --stat -p -C --color-words
|
|
||||||
dt = difftool
|
dt = difftool
|
||||||
patch = !git --no-pager diff --no-color
|
patch = !git --no-pager diff --no-color
|
||||||
co = checkout
|
pullr = pull --rebase --autostash
|
||||||
|
sh = show --stat -p -C --color-words
|
||||||
st = status -sb
|
st = status -sb
|
||||||
pullr = pull --rebase
|
|
||||||
t = tag --sort=-v:refname --format='%(color:bold italic)%(objectname:short)%(color:noitalic) %(refname:short)'
|
t = tag --sort=-v:refname --format='%(color:bold italic)%(objectname:short)%(color:noitalic) %(refname:short)'
|
||||||
|
|
||||||
|
new = !git fetch -u origin main:main && git branchless switch -d origin/main
|
||||||
sl = branchless smartlog
|
sl = branchless smartlog
|
||||||
sync = branchless sync
|
sync = branchless sync
|
||||||
sw = branchless switch
|
sw = branchless switch
|
||||||
s = branchless switch -i
|
s = branchless switch -i
|
||||||
new = !git fetch -u origin main:main && git branchless switch -d origin/main
|
|
||||||
copr = "!f() { \
|
copr = "!f() { \
|
||||||
pr=$1 \
|
pr=$1 \
|
||||||
&& test -n \"$pr\" || pr=`tea pr list -o simple | fzf --bind 'enter:become(echo {+1})'` \
|
&& test -n \"$pr\" || pr=`tea pr list -o simple | fzf --bind 'enter:become(echo {+1})'` \
|
||||||
|
@ -55,54 +30,87 @@ lla = log --graph --date=relative --topo-order --pretty='format:%Cgreen%h %Cblue
|
||||||
guilt = "!f(){ git log --pretty='format:%an <%ae>' $@ | sort | uniq -c | sort -rn; }; f"
|
guilt = "!f(){ git log --pretty='format:%an <%ae>' $@ | sort | uniq -c | sort -rn; }; f"
|
||||||
serve = daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/
|
serve = daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/
|
||||||
|
|
||||||
|
|
||||||
[color]
|
|
||||||
ui = auto
|
|
||||||
branch = auto
|
|
||||||
diff = auto
|
|
||||||
status = auto
|
|
||||||
|
|
||||||
[apply]
|
[apply]
|
||||||
whitespace = nowarn
|
whitespace = nowarn
|
||||||
|
|
||||||
[blame]
|
[blame]
|
||||||
date = relative
|
date = relative
|
||||||
|
|
||||||
|
[branch "main"]
|
||||||
|
rebase = true
|
||||||
|
|
||||||
|
[branch "master"]
|
||||||
|
rebase = true
|
||||||
|
|
||||||
|
[color]
|
||||||
|
branch = auto
|
||||||
|
diff = auto
|
||||||
|
status = auto
|
||||||
|
ui = auto
|
||||||
|
|
||||||
|
[column]
|
||||||
|
ui = auto
|
||||||
|
|
||||||
|
[core]
|
||||||
|
compression = 3
|
||||||
|
excludesfile = "~/.gitignore"
|
||||||
|
looseCompression = 3
|
||||||
|
pager = delta
|
||||||
|
|
||||||
[delta]
|
[delta]
|
||||||
; # syntax-theme = GitHub
|
; # syntax-theme = GitHub
|
||||||
file-style = bold "#ffff66" "#333300"
|
|
||||||
file-transformation = "s/$/ ══ /"
|
|
||||||
file-decoration-style=none
|
|
||||||
file-added-label = " ══"
|
file-added-label = " ══"
|
||||||
|
file-decoration-style=none
|
||||||
file-modified-label = " ══"
|
file-modified-label = " ══"
|
||||||
file-removed-label = " ══"
|
file-removed-label = " ══"
|
||||||
file-renamed-label = " ══"
|
file-renamed-label = " ══"
|
||||||
|
file-style = bold "#ffff66" "#333300"
|
||||||
|
file-transformation = "s/$/ ══ /"
|
||||||
hunk-header-decoration-style=none
|
hunk-header-decoration-style=none
|
||||||
; hunk-header-decoration-style='#99eeff'
|
|
||||||
hunk-header-file-style = bold "#66ddff"
|
hunk-header-file-style = bold "#66ddff"
|
||||||
hunk-header-style = line-number bold "#99eeff" "#001133"
|
|
||||||
hunk-header-line-number-style = bold "#66ccff"
|
hunk-header-line-number-style = bold "#66ccff"
|
||||||
hunk-label-style = bold "#66ccff"
|
hunk-header-style = line-number bold "#99eeff" "#001133"
|
||||||
hunk-label = " "
|
hunk-label = " "
|
||||||
|
hunk-label-style = bold "#66ccff"
|
||||||
line-numbers = true
|
line-numbers = true
|
||||||
max-line-distance = 0.9
|
max-line-distance = 0.9
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[hub]
|
|
||||||
protocol = git
|
|
||||||
|
|
||||||
[http]
|
[http]
|
||||||
cookiefile = /home/dln/.gitcookies
|
cookiefile = /home/dln/.gitcookies
|
||||||
|
|
||||||
|
[hub]
|
||||||
|
protocol = git
|
||||||
|
|
||||||
[interactive]
|
[interactive]
|
||||||
diffFilter = delta --color-only --features=interactive
|
diffFilter = delta --color-only --features=interactive
|
||||||
|
|
||||||
|
[commit]
|
||||||
|
gpgsign = true
|
||||||
|
verbose = true
|
||||||
|
|
||||||
[credential]
|
[credential]
|
||||||
helper = store
|
helper = store
|
||||||
|
|
||||||
[commit]
|
[diff]
|
||||||
gpgsign = true
|
algorithm = histogram
|
||||||
|
tool = difft
|
||||||
|
|
||||||
|
[difftool]
|
||||||
|
prompt = false
|
||||||
|
|
||||||
|
[difftool "difft"]
|
||||||
|
cmd = difft --color=always --display inline "$LOCAL" "$REMOTE" | bat
|
||||||
|
|
||||||
|
[fetch]
|
||||||
|
prune = true
|
||||||
|
prunetags = true
|
||||||
|
showForcedUpdates = true
|
||||||
|
|
||||||
|
[filter "lfs"]
|
||||||
|
clean = git-lfs clean -- %f
|
||||||
|
process = git-lfs filter-process
|
||||||
|
required = true
|
||||||
|
smudge = git-lfs smudge -- %f
|
||||||
|
|
||||||
[gpg]
|
[gpg]
|
||||||
format = ssh
|
format = ssh
|
||||||
|
@ -111,34 +119,32 @@ format = ssh
|
||||||
allowedSignersFile = ~/.config/git/allowed_signers
|
allowedSignersFile = ~/.config/git/allowed_signers
|
||||||
defaultKeyCommand = /home/dln/.config/git/signing-key.sh
|
defaultKeyCommand = /home/dln/.config/git/signing-key.sh
|
||||||
|
|
||||||
[user]
|
|
||||||
name = Daniel Lundin
|
|
||||||
email = dln@arity.se
|
|
||||||
|
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
|
|
||||||
; [url "git@github.com:"]
|
|
||||||
; insteadOf = https://github.com/
|
|
||||||
|
|
||||||
[lfs]
|
[lfs]
|
||||||
concurrenttransfers = 32
|
concurrenttransfers = 32
|
||||||
|
|
||||||
[filter "lfs"]
|
[merge]
|
||||||
clean = git-lfs clean -- %f
|
conflictstyle = zdiff3
|
||||||
smudge = git-lfs smudge -- %f
|
|
||||||
process = git-lfs filter-process
|
|
||||||
required = true
|
|
||||||
|
|
||||||
[diff]
|
[pack]
|
||||||
tool = difft
|
compression = 3
|
||||||
|
threads = 0
|
||||||
|
|
||||||
[difftool]
|
[push]
|
||||||
prompt = false
|
default = tracking
|
||||||
|
|
||||||
|
[rebase]
|
||||||
|
autosquash = true
|
||||||
|
|
||||||
|
[rerere]
|
||||||
|
enabled = true
|
||||||
|
|
||||||
[difftool "difft"]
|
|
||||||
cmd = difft --color=always --display inline "$LOCAL" "$REMOTE" | bat
|
|
||||||
[fetch]
|
|
||||||
showForcedUpdates = true
|
|
||||||
[tag]
|
[tag]
|
||||||
sort = -v:refname
|
sort = -v:refname
|
||||||
|
|
||||||
|
[user]
|
||||||
|
email = dln@arity.se
|
||||||
|
name = Daniel Lundin
|
||||||
|
useConfigOnly = true
|
||||||
|
|
Loading…
Reference in a new issue