Skip to content

Instantly share code, notes, and snippets.

@cborgia
Created October 29, 2013 18:14
Show Gist options
  • Save cborgia/7219786 to your computer and use it in GitHub Desktop.
Save cborgia/7219786 to your computer and use it in GitHub Desktop.
only add deleted files to git (useful when making commits based on clean up)
git ls-files --deleted -z | xargs -0 git rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment