I had duplicate directories in Github (differing in case). It seems they are both tracked to a single directory in my local. How do I properly delete one of the directories without affecting my local?
General steps I took (IIRC):
- I had a directory, let's say "MyDirectory".
- I pushed some code in that directory to Github.
- I changed the directory name to "mydirectory".
- I realized that github is not case-sensitive by default (all my code changes were added to to "MyDirectory" in Github), so I ran "git config core.ignorecase false".
- I re-pushed the changes, which created a new directory in Github. (At this point, Github has 2 directories, one named MyDirectory and the other named mydirectory. My local only has mydirectory.)
- I couldn't figure out a good way to delete MyDirectory from Github, so I manually deleted all the files inside it following these steps.
- Now, when I run git pull, it deletes mydirectory from local (I don't want that.)