From 8acb831a60f4136e1bc6b7f0a68d485d5691fd77 Mon Sep 17 00:00:00 2001 From: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Date: Sun, 22 Aug 2021 01:00:53 -0300 Subject: [PATCH] git: add `git fa` command git fa (fzf add) - prompt user to select from all changed files which to add to staged area --- .gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitconfig b/.gitconfig index 59293e0..8f647c9 100644 --- a/.gitconfig +++ b/.gitconfig @@ -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 --