Git rm pending files
If you’ve deleted a bunch of files in your directory, here’s a handy bash alias to git rm the changes into your index.
alias gitrm="git stat | grep deleted | awk '{print $3}' | xargs git rm"
Update: turns out git add -u takes care of deleted files.










2 Comments