Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ahmed-bhs/e0fd029813c28c3b1f4642e0abb53e4d to your computer and use it in GitHub Desktop.
Save ahmed-bhs/e0fd029813c28c3b1f4642e0abb53e4d to your computer and use it in GitHub Desktop.
A command to stop tracking and entire directory in a Git repo
// Reference: http://stackoverflow.com/questions/936249/stop-tracking-and-ignore-changes-to-a-file-in-git
$ git rm --cached -r <dir>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment