dotfiles/.gitconfig

104 lines
3.3 KiB
INI
Raw Normal View History

2016-10-10 16:23:16 +02:00
[core]
excludesfile = "~/.gitignore"
2021-04-20 10:15:40 +02:00
pager = delta --line-numbers
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
d = diff --stat -p -C
ds = diff --staged --stat -p -C
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
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)\"; :"
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]
plus-color = "#012800"
minus-color = "#340001"
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]
diffFilter = delta --color-only
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]
2021-04-01 16:03:36 +02:00
# gpgsign = true
2020-09-27 13:56:54 +02:00
2020-03-24 12:26:46 +01:00
[user "arity"]
2020-09-27 13:56:54 +02:00
name = Daniel Lundin
email = daniel@arity.se
signingkey = 79020DB026385D4C
2020-10-14 11:16:51 +02:00
[init]
2021-01-12 19:39:21 +01:00
defaultBranch = main