I've downgraded django and built a large feature in my latest branch (personal project). Github wants me to resolve conflicts before merging. I tried to follow the instructions but stuck in an infinite loop.
Their instructions:
Step 1: From your project repository, bring in the changes and test.
a)git fetch origin
b)git checkout -b foobranch origin/foobranch
c)git merge main
Step 2: Merge the changes and update on GitHub.
a)git checkout main
b)git merge --no-ff foobranch
c)git push origin main
I've done all that, and at the end, it rejects me with error:
Updates were rejected because the tip of your current branch is behind
'git pull ...') before pushing again
I did "git pull" and all the conflicts come back. Back to square one...
I tried to use Github Desktop, it shows the diff side-by-side, but there's no way to choose the version I want and push/merge.
Please help, how can I push my latest branch on Github?