I have accidentally included a folder in my Git repository, that I don’t want to include in source control. I wanted to remove it from the Git index, but not from the local hard drive. The solution is the following command git rm -r –cached myFolder If the folder name contains spaces enclose it in …
Continue reading “How to delete a folder from Git, but not from the local disk”