I have the following scenario:
I am sure the solution is obvious to the git experts who know how to fix this. So far I could not find it, so please share.
All you need to do is, checkout on those pull requests: git checkout PR1
pull the latest the changes on develop branch. git pull origin develop
Review your corresponding changes. and push to your respective PR. The git remote PR gets updated with new changes and your CI will approve accordingly as well.
I suggest you to do a git rebase
for this scenario.
Git Rebase Official Doc
What it does is, checkout to branch you specify while doing a rebase, lets say you have pr#2 and pr#3 pending, You clone the repo and do while in the branch which generated the PR,
git rebase develop
It will say that rebase in prgress, so, you go and solve conflicts in that process, and do a
git add
Now, the rebase either continue or stop if do not have more conflicts. If you have, you can read status in terminal, to continue,
git rebase --continue
Now, do that until all conflicts are resolved.
And finally when you checkout to the branch for that PR, you should see that there are NO conflicts, and branch can be automatically merged (by pushing to remote repo obviously).
Now, repeat the same process for pr#3, and you are done.
In summary,
git rebase develop
git add <files>
git rebase --continue
repeat this for pr#3 also.
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