Skip to content

Instantly share code, notes, and snippets.

@ninjitaru
Last active January 4, 2016 13:39
Show Gist options
  • Save ninjitaru/8629482 to your computer and use it in GitHub Desktop.
Save ninjitaru/8629482 to your computer and use it in GitHub Desktop.
git add deleted files
git rm $(git ls-files --deleted)
git ls-files --deleted --exclude-standard -z | while read -r -d '' file; do
git rm "$file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment