1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Untrack A Directory Of Files Without Deleting as a git til.

This commit is contained in:
jbranchaud
2016-01-09 17:03:01 -06:00
parent 95869d1a78
commit 2dbb15cf77
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# Untrack A Directory Of Files Without Deleting
In [Untrack A File Without Deleting It](git/untrack-a-file-without-deleting-it.md),
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:
```bash
$ git rm --cached -r <directory>
```
[source](http://stackoverflow.com/questions/1143796/remove-a-file-from-a-git-repository-without-deleting-it-from-the-local-filesyste)