Reputation: 93
I renamed folders in git locally by only change the case (ex: homepage => HomePage), so locally all looks good.
On GitHub however, the 2 folders (homepage
and HomePage
) are there.
To make sure my local and remote repos are in sync, I deleted my local project folder and ran git clone
again. The duplicate folders on GitHub are not cloned, so it seems to me like a GitHub issue.
I want the extra folders (homepage
and articles
) on GitHub to go away.
Upvotes: 1
Views: 317
Reputation: 1323953
The duplicate folders on GitHub are not cloned, so it seems to me like a GitHub issue
No, it is a local OS issue, which is not case sensitive.
Try:
git rm -r homepage/
git checkout -- HomePage
Check that HomePage
is there. Add, commit and push and see if you would still have "two" homepage
folders.
Upvotes: 2