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:
Guilherme Rugai Freire 2021-08-22 01:00:53 -03:00
parent e37659e3e8
commit 8acb831a60
No known key found for this signature in database
GPG Key ID: 0F9FE41723A8A297

View File

@ -16,6 +16,7 @@
[alias]
st = status -sb
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 --
undo = reset --soft HEAD~1
discard = checkout --