GitHub - Merge Pull Request (with Squash Commits) - does the branch still say that 7 commits are ahead of the master?

In my own repository, I set the master branch as protected in Settings>Branches so that my own Pull Requests not automatically accepted. This allows me to choose the Squash Commits when accepting my own Pull Request .

The problem is that after this merge, if I switch to Branches on GitHub, the merged branch still shows 7, which precedes master . How can I update this?

Update

I don’t think there is a way around this. I am going to use Squash & Merge , remove branch and create a tag on master with the name of the merged branch

+1
git github
Dec 13 '17 at 11:12
source share
1 answer

Squash merge is not tracked by git, so the branch is still showing as unbound. You must somehow remember which branches are merged. As I understand it, the idea is that you delete branches immediately after merging them.

0
Dec 13 '17 at 15:14
source share



All Articles