You can force update your master
branch as follows:
git checkout upstreambranch
git branch master upstreambranch -f
git checkout master
git push origin master -f
For the ones who have problem to merge into main
branch (Which is the new default one in Github) you can use the following:
git
…
Top comments (1)
thank you, this helps me.