git configs

This commit is contained in:
thek4n 2024-11-19 10:22:14 +03:00
parent cca2037d2c
commit bd53de094a

View File

@ -2,7 +2,7 @@
excludesfile = ~/.config/git/ignore excludesfile = ~/.config/git/ignore
editor = "$EDITOR" editor = "$EDITOR"
pager = "$PAGER -+C -F" pager = "$PAGER -+C -F"
fileMode = false fileMode = true
hooksPath = ~/.config/git/hooks hooksPath = ~/.config/git/hooks
whitespace = fix,trailing-space,cr-at-eol whitespace = fix,trailing-space,cr-at-eol
autocrlf = input autocrlf = input
@ -63,6 +63,9 @@
cia = commit --all cia = commit --all
amend = commit --amend --no-edit amend = commit --amend --no-edit
amenda = commit --all --amend --no-edit amenda = commit --all --amend --no-edit
fuck = commit --amend
uncommit = reset --soft HEAD~1
untrack = rm --cache --
cim = "!_m() { git commit -m \"$*\"; }; _m" cim = "!_m() { git commit -m \"$*\"; }; _m"
cima = "!_m() { git commit -am \"$*\"; }; _m" cima = "!_m() { git commit -am \"$*\"; }; _m"
ps = "!git push origin $(git rev-parse --abbrev-ref HEAD)" ps = "!git push origin $(git rev-parse --abbrev-ref HEAD)"