Azure DevOps - Branch's behind and ahead count will get reset after successful PR

5.1k views Asked by At

The ahead and behind numbers listed for each branch will get reset or remain same after successful pull request to compare branch? Azure DevOps ahead and behind

1

There are 1 answers

3
Leo Liu On BEST ANSWER

The ahead and behind numbers listed for each branch will get reset or remain same after successful pull request to compare branch?

According to the document Manage branches

The ahead and behind numbers listed for each branch are in comparison with the branch currently labeled Compare on the Branches page.

The ahead and behind numbers are related to the branch that is set to be compared.

So, when we merge the commit to the compare branch, the behind listed for each branch will get reset after successful pull request to compare branch. But only the ahead numbers for the merged branch will be reset to zero, and other branches will remain same.

For example:

enter image description here

After merged the branch DevTest1 to Dev by PR:

enter image description here

The behind listed for each branch will get reset, only the ahead numbers for the merged branch will be reset to zero, and other branches will remain same.