I am working on android studio and am fairly new to GitHub. I created a new branch diverging from origin/master lets name it "newCommits", I added a new functionality and made 1 commit to this branch and pushed it. Now at Github browser I created a PR and after reviewing the code I merged it in master branch.
A new message popped at the top of newCommits that "This branch is 1 commit behind the master branch." I know this is due to the extra merge commit, but is there any fix to it?
Every other thread gave the answer to clone the repo and then fetch and push the origin but do I have to do it every time I commit in the newCommits?
I tried Github Desktop:
- Tried to directly merge and then push to origin, worked but no use of PR
- Tried to Rebase but was not successful
Tried to Merge the newCommits within the Master through Github Desktop
How you can do it:
git checkout newCommits git rebase master
then try following command:
git push origin newCommits --force