Skip to content

Instantly share code, notes, and snippets.

@sourcerebels
Created March 22, 2012 07:58
Show Gist options
  • Save sourcerebels/2156938 to your computer and use it in GitHub Desktop.
Save sourcerebels/2156938 to your computer and use it in GitHub Desktop.
Git > Remove CVS directories from Git repository without deleting it from filesystem
find <directory> -name 'CVS' -type d | xargs -d "\n" git rm -r --cached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment