git alias

This commit is contained in:
thek4n 2024-11-19 09:26:40 +03:00
parent 94ef205cf7
commit cca2037d2c

View File

@ -60,7 +60,7 @@
dw = diff --word-diff=color dw = diff --word-diff=color
co = checkout co = checkout
ci = commit ci = commit
cia = commit -a 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
cim = "!_m() { git commit -m \"$*\"; }; _m" cim = "!_m() { git commit -m \"$*\"; }; _m"
@ -79,7 +79,7 @@
last = log -1 HEAD last = log -1 HEAD
lastd = diff HEAD^ HEAD lastd = diff HEAD^ HEAD
today = hist --since=midnight today = hist --since=midnight
df = "!git log --pretty=format:'%h %cd [%cn] %s%d' --date=relative | fzf --bind 'enter:execute(git diff --color=always {1}^ {1} | ${PAGER})' --preview-window=65% --preview='git diff --color=always {1}^ {1}'" df = "!_m() { git log --pretty=format:'%h %cd [%cn] %s%d' --date=relative | fzf --bind \"enter:execute(git diff --color=always $@ {1}^ {1} | ${PAGER})\" --preview-window=65% --preview=\"git diff --color=always $@ {1}^ {1}\"; }; _m"
type = cat-file -t type = cat-file -t
dump = cat-file -p dump = cat-file -p
unstage = "reset HEAD --" unstage = "reset HEAD --"