mirror of
https://github.com/GRFreire/dotfiles.git
synced 2026-01-09 20:19:37 +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]
|
||||
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 --
|
||||
|
||||
Loading…
Reference in New Issue
Block a user