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.