2022-02-03
This commit is contained in:
parent
f86b8496ec
commit
db393215ce
55 changed files with 1907 additions and 0 deletions
53
home/dot-config/git/config
Normal file
53
home/dot-config/git/config
Normal file
|
@ -0,0 +1,53 @@
|
|||
[init]
|
||||
defaultBranch = main
|
||||
templatedir = ~/.local/share/git/preset
|
||||
|
||||
[core]
|
||||
excludesfile = ~/.local/share/git/ignore
|
||||
autocrlf = input
|
||||
# Treat spaces before tabs and all kinds of trailing whitespace as an error.
|
||||
# [default] trailing-space: looks for spaces at the end of a line
|
||||
# [default] space-before-tab: looks for spaces before tabs at the beginning of a line
|
||||
whitespace = space-before-tab,-indent-with-non-tab,trailing-space
|
||||
|
||||
[alias]
|
||||
st = status
|
||||
pf = push --force-with-lease
|
||||
ls = log --pretty=oneline -n 20 --graph --abbrev-commit
|
||||
graph = log --graph --oneline --decorate
|
||||
contributors = shortlog --summary --numbered
|
||||
whoami = config user.email
|
||||
|
||||
[commit]
|
||||
template = ~/.local/share/git/message
|
||||
gpgsign = true
|
||||
|
||||
[color]
|
||||
ui = auto
|
||||
[apply]
|
||||
# Detect whitespace errors when applying a patch.
|
||||
whitespace = fix
|
||||
|
||||
[push]
|
||||
default = current
|
||||
followTags = true
|
||||
[pull]
|
||||
ff = true
|
||||
[merge]
|
||||
ff = only
|
||||
log = true
|
||||
[fetch]
|
||||
prune = true
|
||||
|
||||
[diff]
|
||||
renames = copies
|
||||
[diff "bin"]
|
||||
textconv = hexdump -v -C
|
||||
|
||||
[gpg]
|
||||
program = gpg2
|
||||
|
||||
[include]
|
||||
path = ~/.config/git/config.localhost
|
||||
[include]
|
||||
path = ~/.config/git/prefere-ssh
|
1
home/dot-config/git/config.localhost
Normal file
1
home/dot-config/git/config.localhost
Normal file
|
@ -0,0 +1 @@
|
|||
[user]
|
14
home/dot-config/git/prefere-ssh
Normal file
14
home/dot-config/git/prefere-ssh
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
[url "git@github.com:"]
|
||||
pushInsteadOf = "github:"
|
||||
pushInsteadOf = "git://github.com/"
|
||||
pushInsteadOf = "https://github.com/"
|
||||
|
||||
[url "git@gist.github.com:"]
|
||||
pushInsteadOf = "gist:"
|
||||
pushInsteadOf = "git://gist.github.com/"
|
||||
|
||||
[url "git@gitlab.com:"]
|
||||
pushInsteadOf = "gitlab:"
|
||||
pushInsteadOf = "git://gitlab.com/"
|
||||
pushInsteadOf = "https://gitlab.com/"
|
Loading…
Add table
Add a link
Reference in a new issue