Git conflicted copy error while cloning a repository

后端 未结 3 523
小鲜肉
小鲜肉 2021-02-07 05:35

I am using dropbox as a git repository.

Now due to some issue in the syncing, there is some conflicted copy present in the git. How do I remove this conflict ? Due to

3条回答
  •  滥情空心
    2021-02-07 06:14

    A quick way to apply the solutions from kenansulayman and Frank R. is with the following command, that should be ran from the root of the defective repository:

    find .git -name '*conflicted*' -exec rm {} \;
    

    Notice: I assume you don't have any branches, tags (or some other git object) with the string conflicted in their names. If you do, that command will also delete those wanted files.

    That worked for me. Cheers.

提交回复
热议问题