dotfiles/.gitconfig

129 lines
3.8 KiB
INI
Raw 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
2021-03-31 11:02:29 +02:00
du = !"git --no-pager diff --stat -p -C --color=always"
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
wc = whatchanged --abbrev-commit --date=relative --date-order --pretty='format:%Cgreen%h %Cblue%ar %Credby %an%Creset -- %s' -n 45
2021-01-03 13:16:07 +01:00
f = fuzzy status
fd = fuzzy diff
fl = fuzzy log
fs = fuzzy status
pu = "!git push --set-upstream origin $(git symbolic-ref --short HEAD)"
rbi = rebase --interactive
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
gl = log --decorate --graph --abbrev-commit --color --color-words --topo-order --pretty=medium
gla = log --decorate --graph --abbrev-commit --color --color-words --topo-order --pretty=medium --all
sl = log --decorate --graph --abbrev-commit --color --topo-order --pretty=oneline
sla = log --decorate --graph --abbrev-commit --color --topo-order --pretty=oneline --all
#lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
2016-10-10 16:23:16 +02:00
plog = !GIT_PAGER='less -n +/^commit\\ \\[0-9a-f\\]+' git log --color --patch-with-stat
lg = !"git lg1"
lg1 = !"git lg1-specific --all"
lg2 = !"git lg2-specific --all"
lg3 = !"git lg3-specific --all"
lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'
lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
lg3-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'
2016-10-10 16:23:16 +02:00
cdiff = diff --color
diffs = diff --staged --stat -p
diffc = diff --staged --stat -p
vimdiff = difftool -t vimdiff
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]
tool = difftastic
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"