I have forked my repo say repoB from another repo say repoA. Now I don't have permissions to write into repoA.
When I try to create a pull request on repoA to get the latest changes and merge those in to repoB I get a merge conflict error. How do I solve that?
I tried this:
git checkout -b repoA master
git pull https:repoA master
git checkout master
git merge --no-ff repoA
git push origin master
N.B. I cannot checkout forkA as I don't have write permissions on that.
Simply push your development branch to the forked remote repository and create the pull request as described in the linked article. The owner of the original repository can then add your repository as a new remote repository, fetch your changes and merge your development branch back into the master branch.
First add the upstream remote
git remote add upstream https://repoA
git fetch upstream
Merge in upstream changes
git checkout master
git merge upstream/master
Resolve conflicts and push
git push origin master
Your pull request should automatically update
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With