From df448afff8a625d306b6bf083f6798470bad5868 Mon Sep 17 00:00:00 2001 From: TBS093A Date: Wed, 22 Mar 2023 12:24:01 +0100 Subject: [PATCH] git alias -> some fixes --- .gitconfig | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.gitconfig b/.gitconfig index ad34615..e64e907 100644 --- a/.gitconfig +++ b/.gitconfig @@ -7,12 +7,15 @@ 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 $1 -cmma = !git add . && git commit --amend -m $1 +cmm = !git add . && git commit -m +cmma = !git add . && git commit --amend -m -sqshmsg = !git reset --soft HEAD~$1 && git commit -m $2 -sqsh = !git reset --soft HEAD~$1 && git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})" +rsft = !git reset --soft +rhrd = !git reset --hard -pshall = !git push $1 --all -pshalltags = !git push $1 --tags -pshmirror = !git push $1 --mirror \ No newline at end of file +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})" : + +pshallbr = !git push --all +pshalltg = !git push --tags +pshmrr = !git push --mirror \ No newline at end of file