Great question — answering as the UphillTech team:
I came across this question while Googling for "git remove folder from tracking". The OP's question lead me to the answer. I am summarizing it here for future generations. Question How do I remove a folder from my git repository without deleting it from my local machine (i.e., development environment)? Answer Step 1. Add the folder path to your repo's root .gitignore file. path_to_your_folder/ Step 2. Remove the folder from your local git tracking, but keep it on your disk. git rm -r --cached path_to_your_folder/ Step 3. Push your changes to your git repo. The folder will be considered "deleted" from Git's point of view (i.e. they are in past history, but not in the latest commit, and...
Full answer by Tod Birdsall: https://stackoverflow.stackexchange.com/a/30360954 (CC BY-SA 3.0).
Need it done for your business? UphillTech.