I am in the middle of a confusing merge conflict between my branch (fix/disambiguate-property-meaning) and another repo's staging branch that would like to merge in my updated pull request. At present, I find myself on some master branch awaiting its initial commit, but I want to switch to my branch so I can commit to it, which I believe should automatically update the pull request.
This is what I have done so far in my attempt to resolve the merge conflict:
On branch fix/disambiguate-property-meaning
Your branch is up-to-date with 'origin/fix/disambiguate-property-meaning'.
...
git pull --rebase upstream staging
Resulted in the following messages:
From https://github.com/FreeCodeCamp/FreeCodeCamp
* branch staging -> FETCH_HEAD
57bb224..25e6d42 staging -> upstream/staging
...
CONFLICT (content): Merge conflict in seed/challenges/01-front-end-development-certification/basic-javascript.json
error: Failed to merge in the changes.
Patch failed at 0001 fix/disambiguate-property-meaning, make JSON valid in basic-javascript.json #9096
The copy of the patch that failed is found in: .git/rebase-apply/patch
When you have resolved this problem, run "git rebase --continue".
...
Before proceeding with editing my file that contained the conflicts, I ran git branch to reassure myself which branches I was dealing with and received:
* (no branch, rebasing fix/disambiguate-property-meaning)
fix/disambiguate-property-meaning
staging
This branch situation looked fine to me. (Did I miss something?) So, in basic-javascript.json, I deleted the git markings that indicated the conflicts. Everything else about my file looked exactly how I need it to look. I saved and closed it.
Back in my terminal, I ran:
git add basic-javascript.json
git rebase --continue
I received the following baffling question:
No rebase in progress?
I have not found a clear explanation about this. What is this question really asking me to do? If it is a confirmation that the rebase was successful, as some answers seem to suggest, what a miserable choice in wording it!
What I want to do next is commit basic-javascript.json to my branch, then (automatically) update the pull request; which I believe equates to saying, then merge those changes from my branch to the remote upstream's staging branch.
How do I accomplish that? I am now somehow on some repo's master branch.