GitHub shows directories twice that have been renamed

I have a git repository that had a directory called Code. We wanted to remove the capitalization and change the directory name to code. We made that change locally and pushed it to the repo. Now on GitHub, it appears that the repository has two copies of the directory, one with each capitalization. When you clone the repo, you get the directory labeled code on GitHub, but the local repository calls it Code, and there is no Code directory in the local repo.

Any ideas on how to remove the capitalized Code from GitHub?

  • Force git commit when staging is empty, but pre-commit hook will add files
  • Sharing rerere cache
  • How to get display code that are modified code using git
  • Creating proper build or deployment chain with Microservices, Docker, Jenkins and GIT
  • Eclipse, Git and Bitbucket - Can't push - Error 401 Unauthorized
  • remote: Invalid username or password
  • Possible to have multiple git users logged in as root?
  • GitLab: Can't push code to server?
  • GIT post-receive checkout without root folder
  • Is it possible to have a git configuration that depends on the installed version fo git
  • Rename a git submodule
  • “fatal: corrupt patch at line XX” when staging single line
  • One Solution collect form web for “GitHub shows directories twice that have been renamed”

    According to the github page of your project, it seems you solved your problem.

    I bet you moved your folders using mv and git add-ed the uppercase-version and did not stage the removal of the lowercase-version. You have to “add” the deletion.

    To move things around, git mv takes care of everything for you.

    Git Baby is a git and github fan, let's start git clone.