Duplicated folders in github

后端 未结 2 778
感情败类
感情败类 2021-01-11 11:46

I have an app that is been tracked using git and the repository is hoted on github.

In my local computer the folders and files are these:

2条回答
  •  梦毁少年i
    2021-01-11 12:08

    Git is case-sensitive, but Windows is not. So, the two directories aren't duplicates in Git's view.

    If you renamed TulpepWebsite to TulpepWebSite sometime in the past, then all the files which were under TulpepWebsite would have been tracked by git under that old name, while any new files you added would be tracked under the new name.

    To fix this, I'd just git-mv the folder to something else and git-mv it back to the old name. This will hopefully force all of the paths to use a consistent case.

提交回复
热议问题