Git: Remove Folder from Tracking

A folder named ‘static’ (and all its sub-folders/files) is currently being tracked and I want to stop it. Not delete it from disk or from git history, just ignore it so the history remains intact in case I want to add it back later.

I’m using this which seems to work but it won’t let me commit the changes,

git rm --cached static/\*

Is this not correct?

Todd


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Take a look at the “Ignoring versioned files” section at the end of this page: Ignoring files - GitHub Docs

Joe

On 13 Sep 2013, at 15:44, Todd email@hidden wrote:

A folder named ‘static’ (and all its sub-folders/files) is currently being tracked and I want to stop it. Not delete it from disk or from git history, just ignore it so the history remains intact in case I want to add it back later.

I’m using this which seems to work but it won’t let me commit the changes,

git rm --cached static/\*

Is this not correct?


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options