git alias -> add some useful aliases for git usage
parent
95236b3320
commit
cde78a0aa5
19
.gitconfig
19
.gitconfig
|
|
@ -1,9 +1,18 @@
|
||||||
[user]
|
[user]
|
||||||
email = zukkamil.44@gmail.com
|
email = zukkamil.44@gmail.com
|
||||||
name = TBS093A
|
name = TBS093A
|
||||||
|
|
||||||
[alias]
|
|
||||||
lg = git 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)'
|
|
||||||
|
|
||||||
|
[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 $1
|
||||||
|
cmma = !git add . && git commit --amend -m $1
|
||||||
|
|
||||||
|
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})"
|
||||||
|
|
||||||
|
pshall = !git push $1 --all
|
||||||
|
pshalltags = !git push $1 --tags
|
||||||
|
pshmirror = !git push $1 --mirror
|
||||||
Loading…
Reference in New Issue