Search code examples
gitgit-pullgit-merge-conflict

Error while resolving conflicts after latest pull from master branch


I pulled latest remote master branch into my private branch but the automatic merge failed and there were conflicts I tried resolving them by accepting the changes from master branch with the command git checkout --theirs <filename> but it is throwing an error : pathspec 'filename' did not match any file(s) known to git. How do I resolve this?


Solution

  • You should issue the command git status to know the right relative path of each file to pass to the git checkout --theirs -- <FILE_NAMES_LIST>.