git config
This commit is contained in:
parent
4573a2ae3d
commit
ac564ce59f
@ -4,6 +4,13 @@
|
|||||||
pager = "$PAGER -+C -F"
|
pager = "$PAGER -+C -F"
|
||||||
fileMode = false
|
fileMode = false
|
||||||
hooksPath = ~/.config/git/hooks
|
hooksPath = ~/.config/git/hooks
|
||||||
|
whitespace = fix,trailing-space,cr-at-eol
|
||||||
|
autocrlf = input
|
||||||
|
|
||||||
|
[i18n]
|
||||||
|
commitEncoding = utf-8
|
||||||
|
logOutputEncoding = utf-8
|
||||||
|
|
||||||
|
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = master
|
defaultBranch = master
|
||||||
@ -25,10 +32,23 @@
|
|||||||
[advice]
|
[advice]
|
||||||
addEmptyPathspec = false
|
addEmptyPathspec = false
|
||||||
|
|
||||||
|
[log]
|
||||||
|
abbrevCommit = true
|
||||||
|
showSignature = true
|
||||||
|
|
||||||
|
[apply]
|
||||||
|
whitespace = fix
|
||||||
|
|
||||||
|
[diff]
|
||||||
|
mnemonicPrefix = true
|
||||||
|
suppressBlankEmpty = true
|
||||||
|
rename = copy
|
||||||
|
submodule = short
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
a = "!git ls-files --exclude-standard -m --others -t | fzf -m --bind ctrl-a:toggle-all | cut -d' ' -f2 | xargs git add"
|
a = "!git ls-files --exclude-standard -m --others -t | fzf -m --bind ctrl-a:toggle-all | cut -d' ' -f2 | xargs git add"
|
||||||
d = diff
|
d = diff --color-words
|
||||||
ds = diff --staged
|
ds = diff --staged --colors-only
|
||||||
dno = diff --name-only
|
dno = diff --name-only
|
||||||
co = checkout
|
co = checkout
|
||||||
ci = commit
|
ci = commit
|
||||||
@ -53,6 +73,7 @@
|
|||||||
|
|
||||||
# add conflicted file on merge
|
# add conflicted file on merge
|
||||||
add-unmerged = "!git add $(git ls-files --unmerged | cut -f2 | sort -u)"
|
add-unmerged = "!git add $(git ls-files --unmerged | cut -f2 | sort -u)"
|
||||||
|
remove-remote-tag = "!f() { git tag -d $1 && git push origin :refs/tags/$1 }; f"
|
||||||
|
|
||||||
[github]
|
[github]
|
||||||
user = "thek4n"
|
user = "thek4n"
|
||||||
@ -62,3 +83,20 @@
|
|||||||
name = "thek4n"
|
name = "thek4n"
|
||||||
email = "thek4n@yandex.ru"
|
email = "thek4n@yandex.ru"
|
||||||
signingkey = "thek4n"
|
signingkey = "thek4n"
|
||||||
|
|
||||||
|
[url "https://github.com/"]
|
||||||
|
insteadOf = "gh:"
|
||||||
|
|
||||||
|
[url "git@github.com:"]
|
||||||
|
pushInsteadOf = "https://github.com/"
|
||||||
|
pushInsteadOf = "http://github.com/"
|
||||||
|
pushInsteadOf = "gh:"
|
||||||
|
|
||||||
|
[url "https://gist.github.com/"]
|
||||||
|
insteadOf = "gist:"
|
||||||
|
|
||||||
|
[url "git@gist.github.com:"]
|
||||||
|
pushInsteadOf = "https://gist.github.com/"
|
||||||
|
pushInsteadOf = "http://gist.github.com/"
|
||||||
|
pushInsteadOf = "gist:"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user