Reputation: 2552
I've got an issue where I've renamed a folder locally, and changed the folder name to start with a lower case rather than an upper case. I can see the change in my local, and I've made another code change as well. I've pushed it to my Github repo branch by doing the following:
git add .
git commit -m "commit message"
git push origin HEAD:feature_branch_name
I can see the code change in the latest commit, but for some reason, my folder name is not the same (in my remote branch, the folder name still starts with an upper case).
I know this is a very broad question that is hard to reproduce, but is there any reason this may be the case?
I can't even do git mv <old name> <new name>
in my terminal because the folder name in my local is what the folder name in the remote branch should be.
Upvotes: 1
Views: 2599
Reputation: 915
Make a copy of your full App in other folder then delete the holder App from that folder and push it empty, then paste the copied App back again and Push, it will work then.
Upvotes: -1
Reputation: 6762
Have you tried changing the folder name by creating a temporary folder ?
git mv <old-name> temp
git mv temp <new-name>
# Commit and Push the changes
I can't even do
git mv <old name> <new name>
in my terminal because the folder name in my local is what the folder name in the remote branch should be.
Clone the repo again and try doing the above.
Upvotes: 1