V
V
Vasily Medvedev2018-03-12 10:25:18
git
Vasily Medvedev, 2018-03-12 10:25:18

How to fix duplicate folders in GIT?

In the project, there was a need to rename some folders (make them with a capital letter). Under unknown circumstances, the repository now contains 2 identical folders (example controllers and Controllers). 5aa62a642ae44368667678.png
When you try to do a git pull, the folders are unloaded with a small letter, while on the local machine the directories are with a capital letter. When a file is changed in one of the folders, then the commit shows the change in 2 files at once (in the folder with a capital and a small letter). 5aa62b4b728fa872417686.png
The question is how to get rid of this duplication?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2018-03-12
@ExPande

I would try deleting the newer one - git rm
And then renaming the old one to the new one - git mv.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question