Skip to content

Instantly share code, notes, and snippets.

@nzhul
Created September 27, 2015 08:24
Show Gist options
  • Save nzhul/1b8e937a6758d967842d to your computer and use it in GitHub Desktop.
Save nzhul/1b8e937a6758d967842d to your computer and use it in GitHub Desktop.
Removing all deleted files: git ls-files --deleted -z | xargs -0 git rm
Removing deleted directory:
git rm -r --cached App/App.Web/DirectoryName
git commit -m 'Remove the now ignored directory "some-directory"'
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment