From b615ad3724921f3c92b4d7e38c2a4dceac29b6b6 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Fri, 9 May 2014 15:24:57 -0500 Subject: [PATCH] update git ag alias to work when staging files to be deleted --- git/gitconfig.symlink | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/gitconfig.symlink b/git/gitconfig.symlink index ba5ab25..e10736d 100644 --- a/git/gitconfig.symlink +++ b/git/gitconfig.symlink @@ -90,7 +90,7 @@ # 'checkout grep' cg = "!sh -c 'git ls-files -m | grep $1 | xargs git checkout ' -" # add grep - ag = "!sh -c 'git ls-files -m -o --exclude-standard | grep $1 | xargs git add' -" + ag = "!sh -c 'git ls-files -m -o --exclude-standard | grep $1 | xargs git add --all' -" # add all aa = !git ls-files -d | xargs git rm && git ls-files -m -o --exclude-standard | xargs git add # remove grep - Remove found files that are NOT under version control