Skip to content

Instantly share code, notes, and snippets.

@sushruth
Created May 27, 2016 15:50
Show Gist options
  • Save sushruth/a5b0387d7341f7573b62178880697cf8 to your computer and use it in GitHub Desktop.
Save sushruth/a5b0387d7341f7573b62178880697cf8 to your computer and use it in GitHub Desktop.
Remove folders from git

Removing a folder from git (from being tracked)

If you ever wanted to remove an existing tracked folder from git but not delete the actual folder (other than by using .gitignore file), run this in your terminal

git rm -r --cached YOUR_DIRECTORY_OR_FILE_NAME_HERE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment