Git rm pending files
Posted 10 June 2008 @ 6am | Tagged git, thoughts, tips
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