mirror of
https://github.com/gaschz/dotfiles.git
synced 2025-03-01 14:22:33 +01:00
feat: add git alias to amend commits
This commit is contained in:
parent
3c7d828fb5
commit
c9544bdc5c
@ -21,6 +21,8 @@
|
|||||||
in = init
|
in = init
|
||||||
inb = init --bare
|
inb = init --bare
|
||||||
ci = commit
|
ci = commit
|
||||||
|
cia = commit --amend
|
||||||
|
cian = commit --amend --no-edit
|
||||||
cir = "!sh -c 'file=\"$(git rev-parse --git-dir)/COMMIT_EDITMSG\"; if test -s \"$file\"; then git commit -eF \"$file\" \"$@\"; else git commit \"$@\"; fi'" -
|
cir = "!sh -c 'file=\"$(git rev-parse --git-dir)/COMMIT_EDITMSG\"; if test -s \"$file\"; then git commit -eF \"$file\" \"$@\"; else git commit \"$@\"; fi'" -
|
||||||
lg = !sh -c 'git log --color \"$@\"|fmt -s -w 79|less -FRSX' _
|
lg = !sh -c 'git log --color \"$@\"|fmt -s -w 79|less -FRSX' _
|
||||||
lgg = log --graph --pretty='format:%C(yellow)%h%C(reset) %C(magenta)%G?%C(reset) -%C(red)%d%C(reset) %C(reset)%s %C(green)(%cs)%C(reset) %C(blue)%aN%C(reset)'
|
lgg = log --graph --pretty='format:%C(yellow)%h%C(reset) %C(magenta)%G?%C(reset) -%C(red)%d%C(reset) %C(reset)%s %C(green)(%cs)%C(reset) %C(blue)%aN%C(reset)'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user