I have 2 branches - master
and develop
I have been doing some pull requests in my develop
branch where it contains 5 items, in which it is the same as the number of items in master
.
However, someone did some commits and pushed
in a few more items into the master
branch, and hence now it has 8 items.
As my pull request in the develop
is still not yet approved/merged, whenever I tried to update my pull request, I am getting the message stating that This pull request can't be merged. You will need to resolve conflicts to be able to merge
and asked me to do the following:
git fetch origin master
git checkout develop
git merge FETCH_HEAD
git commit
git push origin HEAD
And this happens after I have 'pushed' out my commits, making me confused at times. Then I realized that it is asking me to re-add and re-commit in the additional 3 new items. So does this means I must ensure that the items and contents between these 2 branches of mine should be the same as always? I have always used git pull/fetch
but will there be a better way for me to make sure?