mirror of
https://github.com/GRFreire/dotfiles.git
synced 2026-01-10 04:19:38 +00:00
git: add git fa command
git fa (fzf add) - prompt user to select from all changed files which to add to staged area
This commit is contained in:
parent
e37659e3e8
commit
8acb831a60
@ -16,6 +16,7 @@
|
|||||||
[alias]
|
[alias]
|
||||||
st = status -sb
|
st = status -sb
|
||||||
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
|
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
|
||||||
|
fa = !(git diff --name-only | fzf -m --preview='git diff {} | delta' | xargs -I'{}' git add {} && git st)
|
||||||
unstage = reset HEAD --
|
unstage = reset HEAD --
|
||||||
undo = reset --soft HEAD~1
|
undo = reset --soft HEAD~1
|
||||||
discard = checkout --
|
discard = checkout --
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user