What would I write in my .gitignore file to make it so the CIS440_Env folder is ignored?
Asked
Active
Viewed 759 times
0

undetected
- 77
- 5
-
Duplicate of [this](https://stackoverflow.com/questions/343646/ignoring-directories-in-git-repositories-on-windows) – crissal Feb 01 '21 at 18:21
1 Answers
2
Just add the name of the folder as a new line in your .gitignore:
CIS440_Env/

Guillaume
- 1,956
- 1
- 7
- 9
-
i do that but it doesn't work, is it because the folder was already committed once to the repo? – undetected Feb 01 '21 at 18:24
-
-
yes, my .gitignore has the line CIS440_Env/ in my repo but the folder is still there. I have also tried CIS440_Project/CIS440_Env/ – undetected Feb 01 '21 at 18:27
-
-
fatal: pathspec 'CIS440_Env' did not match any files. and i also tried with the name CIS440_Env/ – undetected Feb 01 '21 at 18:30
-
Try this: https://stackoverflow.com/a/47944428/13964753 ... If that does not work, then if you just set up your git repo maybe reinitialize it with folder in gitignore... – Guillaume Feb 01 '21 at 18:33