I submitted a PR some time ago to a project and now I need to pull the master branch from the main tree into my branch and update the PR.
Are those the right commands to do that?
git fetch upstream/master
git checkout <my_PR_branch>
git rebase upstream/master
git push
When I ran the rebase I had this problem.
M tests/testimage.h
Falling back to patching base and 3-way merge...
Auto-merging tests/testimage.h
CONFLICT (content): Merge conflict in tests/testimage.h
error: Failed to merge in the changes.
Patch failed at 0005 Fix failure message on image comparison
The copy of the patch that failed is found in: .git/rebase-apply/patch
Resolve all conflicts manually, mark them as resolved with
"git add/rm <conflicted_files>", then run "git rebase --continue".
You can instead skip this commit: run "git rebase --skip".
To abort and get back to the state before "git rebase", run "git rebase --abort".
Igors-MacBook-Air:wxFork igorkorot$ git add tests/testimage.h
Igors-MacBook-Air:wxFork igorkorot$ git rebase --continue
Applying: Fix failure message on image comparison
No changes - did you forget to use 'git add'?
If there is nothing left to stage, chances are that something else
already introduced the same changes; you might want to skip this patch.
Resolve all conflicts manually, mark them as resolved with
"git add/rm <conflicted_files>", then run "git rebase --continue".
You can instead skip this commit: run "git rebase --skip".
To abort and get back to the state before "git rebase", run "git rebase --abort".