Duplicated folders in github

后端 未结 2 760
感情败类
感情败类 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条回答
  • 2021-01-11 11:55

    They arent duplicates: TulpepWebsite and TulpepWebSite (note the capital S).

    You probably renamed the folder and git may have not removed the now non-existent folder... check this with git status, and then manually remove the folder from git by running git rm TulpepWebsite/

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题