I am trying to merge my develop branch to the master branch via a pull request. On the pull request page, I am getting the message "Branch is out of date. Merge master into **develop **to remedy."
The problem is that no updates have been made to the master branch since develop branched off of it, other than maybe automated repository upgrades.
I attempted to merge master into develop, but received the same message, just with the branch names swapped.
I understand that to resolve the issue I need to merge master into develop first. However, if I open a PR to go from master to develop, I get the same message as before. There is no mechanism to allow me to merge in those changes.
The most common cause of this is squashing commits from feature-branch
-> develop
and then again squashing between develop
and master
. This is fairly easy to fix locally using the git command line. You'll need to have git installed on your machine and then you can follow the following steps:
git clone [COPIED URL]
git checkout master
git checkout -b fix_merge_conflicts
git merge develop
git add myfile.txt folder/otherfile.py
git commit
vi
, so use :wq
to exit).git checkout master
git merge fix_merge_conflicts
git checkout develop
git merge fix_merge_conflicts
git push