ref(git): aliases a and s for stage and unstage files
This commit is contained in:
parent
8064f04385
commit
9b0769b2f3
@ -44,8 +44,8 @@
|
|||||||
submodule = short
|
submodule = short
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
a = "!git ls-files --exclude-standard -m --others -t | fzf -m --bind load:last --preview 'git diff --color=always {2}' | cut -d' ' -f2 | xargs git add"
|
a = "!git ls-files --exclude-standard -m --others -t | fzf -0 -m --bind load:last --preview 'git diff --color=always {2}' | cut -d' ' -f2 | xargs -r git add"
|
||||||
s = "!git diff --name-only --cached | fzf -m --bind load:last --preview 'git diff --staged --color=always {1}' | xargs git restore --staged"
|
s = "!git diff --name-only --cached | fzf -0 -m --bind load:last --preview 'git diff --staged --color=always {1}' | xargs -r git restore --staged"
|
||||||
d = diff
|
d = diff
|
||||||
di = diff
|
di = diff
|
||||||
ds = diff --staged
|
ds = diff --staged
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user