linux.config/git.config/.gitconfig

36 lines
1.1 KiB
INI

[user]
email = zukkamil.44@gmail.com
name = TBS093A
[core]
editor = nano
[alias]
lg = log --all --decorate --oneline --graph
lg0 = 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)' --all
lg1 = 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)'
# cmm = !git add . && git commit -m
cmm = !git add . && git cz
# cmma = !git add . && git commit --amend -m
cmma = !git add . && git cz --amend
rsft = !git reset --soft
rhrd = !git reset --hard
sqshmsg = !git reset --soft HEAD~$1 && git commit -m
sqsh = !git reset --soft HEAD~$1 && git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})"
ch = !git checkout
pll = !git pull
pllallbr = !git pull --all
psh = !git push
pshallbr = !git push --all
pshalltg = !git push --tags
pshmrr = !git push --mirror
rmtadd = !git remote add
rmtsturl = !git remote set-url --add