dotfiles/.gitconfig

124 lines
2.6 KiB
INI
Raw Permalink Normal View History

2016-10-10 16:23:16 +02:00
[core]
excludesfile = "~/.gitignore"
2022-05-07 16:31:05 +02:00
pager = delta --line-numbers --max-line-distance 0.9
compression = 0
looseCompression = 0
2016-10-10 16:23:16 +02:00
[user]
2020-09-27 13:56:54 +02:00
useConfigOnly = true
2016-10-10 16:23:16 +02:00
2016-10-21 12:37:59 +02:00
[column]
2020-09-27 13:56:54 +02:00
ui = auto
2016-10-21 12:37:59 +02:00
2016-10-10 16:23:16 +02:00
[push]
default = tracking
2020-10-14 11:16:51 +02:00
[branch "main"]
rebase = true
2016-10-10 16:23:16 +02:00
[branch "master"]
rebase = true
[alias]
b = branch -va
cl = clone --filter=blob:none
2016-10-10 16:23:16 +02:00
d = diff --stat -p -C
ds = diff --staged --stat -p -C
2022-03-29 14:45:38 +02:00
dt = difftool
2017-02-23 18:04:14 +01:00
patch = !git --no-pager diff --no-color
2016-10-10 16:23:16 +02:00
co = checkout
st = status -sb
pullr = pull --rebase
2022-09-10 10:53:41 +02:00
sl = branchless smartlog
sync = branchless sync
2022-11-20 14:15:18 +01:00
sw = branchless switch
2022-09-10 10:53:41 +02:00
2022-11-20 14:15:18 +01:00
gerrit-new = !git fetch origin main && git checkout --detach origin/main
2022-10-05 14:58:49 +02:00
gerrit-push = !git push origin HEAD:refs/for/main
gerrit-push-wip = !git push origin HEAD:refs/for/main%wip
gerrit-push-ready = !git push origin HEAD:refs/for/main%ready
gerrit-replace = !git commit --amend -a && git push origin HEAD:refs/for/main
2022-10-07 10:26:53 +02:00
gerrit-config = !git fetch origin refs/meta/config:refs/remotes/origin/meta/config && git checkout FETCH_HEAD
2022-09-30 10:16:50 +02:00
gerrit-config-push = !git push origin HEAD:refs/meta/config
gp = gerrit-push
gpw = gerrit-push-wip
gpr = gerrit-push-ready
2016-10-10 16:23:16 +02:00
ll = log --graph --date=relative --topo-order --pretty='format:%C(yellow)%h%C(yellow)%d %Cblue%ar %Cgreenby %an%Creset -- %s'
lla = log --graph --date=relative --topo-order --pretty='format:%Cgreen%h %Cblue%ar %Credby %an%Creset -- %s' --all
guilt = "!f(){ git log --pretty='format:%an <%ae>' $@ | sort | uniq -c | sort -rn; }; f"
2020-09-27 13:56:54 +02:00
serve = daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/
2016-10-10 16:23:16 +02:00
2020-09-27 13:56:54 +02:00
identity = "! git config user.name \"$(git config user.$1.name)\"; git config user.email \"$(git config user.$1.email)\"; git config user.signingkey \"$(git config user.$1.signingkey)\"; :"
2022-06-07 09:50:37 +02:00
2016-10-10 16:23:16 +02:00
[color]
ui = auto
branch = auto
diff = auto
status = auto
[apply]
whitespace = nowarn
[pack]
threads = 0
[blame]
date = relative
2020-09-27 16:38:35 +02:00
[delta]
2021-04-15 19:42:28 +02:00
syntax-theme = GitHub
2021-01-12 19:39:21 +01:00
hunk-header-style = line-number syntax
2020-09-27 16:38:35 +02:00
2017-06-13 09:24:58 +02:00
[hub]
2020-09-27 13:56:54 +02:00
protocol = git
2018-08-28 16:37:59 +02:00
[http]
2020-09-27 13:56:54 +02:00
cookiefile = /home/dln/.gitcookies
2020-09-27 16:38:35 +02:00
[interactive]
2022-05-07 16:31:05 +02:00
diffFilter = delta --color-only --features=interactive
2020-09-27 16:38:35 +02:00
2019-07-04 17:15:47 +02:00
[credential]
2020-09-27 13:56:54 +02:00
helper = store
2020-03-08 12:55:03 +01:00
[commit]
2022-02-20 22:26:35 +01:00
gpgsign = false
2020-09-27 13:56:54 +02:00
2021-06-17 11:29:04 +02:00
[user]
2020-09-27 13:56:54 +02:00
name = Daniel Lundin
email = daniel@arity.se
2020-10-14 11:16:51 +02:00
[init]
2021-01-12 19:39:21 +01:00
defaultBranch = main
2021-07-22 10:32:46 +02:00
2022-06-07 09:50:37 +02:00
; [url "git@github.com:"]
; insteadOf = https://github.com/
2022-02-11 09:40:22 +01:00
[lfs]
concurrenttransfers = 32
2022-03-29 14:39:18 +02:00
2022-02-11 09:40:22 +01:00
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
2022-03-29 14:39:18 +02:00
[diff]
2022-09-10 10:53:41 +02:00
tool = difft
# external = difft
2022-03-29 14:39:18 +02:00
[difftool]
prompt = false
2022-09-10 10:53:41 +02:00
[difftool "difft"]
cmd = difft --display inline "$LOCAL" "$REMOTE"
2022-10-05 14:58:49 +02:00
[scalar]
repo = /tmp/k2/src
[maintenance]
repo = /tmp/k2/src
[fetch]
showForcedUpdates = true