Skip to content

Instantly share code, notes, and snippets.

@jrmadsen67
Created December 13, 2012 04:50
Show Gist options
  • Save jrmadsen67/4274093 to your computer and use it in GitHub Desktop.
Save jrmadsen67/4274093 to your computer and use it in GitHub Desktop.
git cleanup script. sets all deleted files to git rm <file>
for i in `git status |grep deleted |awk '{print $3}'` ; do git rm $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment