1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00
Files
til/git/untrack-a-directory-of-files-without-deleting.md
2016-01-09 17:04:02 -06:00

533 B

Untrack A Directory Of Files Without Deleting

In Untrack A File Without Deleting It, I explained how a specific file can be removed from tracking without actually deleting the file from the local file system. The same can be done for a directory of files that you don't want tracked. Just use the -r flag:

$ git rm --cached -r <directory>

source