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:
When I see the app in Github I see the folder TulpepWebSite
duplicated.
Why this could happen?
You can delete an individual file or an entire directory in your repository on GitHub. People with write permissions can delete files or directories in a repository.
Just run the rm command with the -f and -r switch to recursively remove the . git folder and all of the files and folders it contains. This Git repo remove command also allows you to delete the Git repo while allowing all of the other files and folder to remain untouched.
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, commit, then git-mv it back to the old name and commit again. This will hopefully force all of the paths to use a consistent case.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With