I excluded a specific folder from git with .gitignore. Today I need to track the files inside, but seems that deleting the line in .gitignore doesn’t work.
I tried to do git update-index --no-assume-unchanged -R folder but -R doesn’t work, when I do git update-index --no-assume-unchanged folder he tells me fatal: Unable to mark file media because he is expecting a file not a folder.
So how do I track these files ?
Thank you very much.
you got step one right to get rid of the line that excludes it in the .gitignore file. Commit that. Now
git add path/to/your/fileand commit. The file should now be tracked.If it still isn’t, check that you didn’t set up a exclude pattern in the config that may be doing this.