how to apply an older patch in local GIT repository?

How do I fix a conflicted copy error while cloning a git repository?

  • 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 this conflict I am unable to clone the contents of that repository. The error I am getting while cloning the repository is:- Git :- fatal: Reference has invalid format: 'refs/heads/debugging (xyz conflictedcopy date) '

  • Answer:

    I had the same problem and it was fixed by removing the "conflicted copy" file in .git/refs/heads/ Thanks, Jon

Benjie Holson at Quora Visit the source

Was this solution helpful to you?

Other answers

Has dropbox corrupted your repository? Perhaps you need to run git fsck to see what damage it has done. Also, you might inspect the contents of .git/refs/heads/debugging and check that it is a SHA1 hash, and not some random value as the result of possible corruption.

Jon Seymour

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.