Skip to content

Instantly share code, notes, and snippets.

@StudioLE
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save StudioLE/d57789694f5be429adaf to your computer and use it in GitHub Desktop.

Select an option

Save StudioLE/d57789694f5be429adaf to your computer and use it in GitHub Desktop.
Remove folder from .git but not from local
# http://stackoverflow.com/questions/1947430/git-remove-directory
# Remove from cache
git rm -r -f --cached DIR_NAME
# Then add DIR_NAME to .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment