update git ag alias to work when staging files to be deleted

This commit is contained in:
Nick Nisi
2014-05-09 15:24:57 -05:00
parent 92ded2f8e7
commit b615ad3724

View File

@@ -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