Duplicated file with different case in git origin (bitbucket)

后端 未结 4 534
挽巷
挽巷 2021-01-31 14:47

I am trying to rename files from foobar.php to FooBar.php which is quite a challenge in Git. So far I have found out that I had to set up the git config value of ignorecas

4条回答
  •  无人及你
    2021-01-31 15:13

    A easy & quick fix would be to rename the affecting root folder back and forth:

    Example:

    mv src src-tmp
    git add .
    git commit 'step 1'
    git push origin your-branch
    mv src-tmp src
    git add .
    git commit 'step 2'
    git push origin your-branch
    

    This should take care of all file case issues (if fixed in your local copy)

提交回复
热议问题