Home > Back-end >  This branch is not ahead of the upstream master
This branch is not ahead of the upstream master

Time:07-07

I have an old branch, at that time the head was named: main.
Later we changed the head as master. Now I want to create a PR of that old branch but its not allowing me to create the PR as the buttons are disabled
enter image description here

CodePudding user response:

Try first to rebase locally your old branch (assuming you are the only one working on it) on top of the new origin/master

cd /pth/to/repo
git fetch
git switch your branch
git rebase origin/master
git push --force

Then check if you can make a PR.

  • Related