develop branch shows N number of commits ahead of master on branches page but when I open develop branch for view the changes, it shows message "This branch does not contain any changes — check it out on your local machine to do some work."
but in the commits section it shows 10+ commits.
Note: I merge my Pull Requests using Squash Strategy.
Dear @Ali Raza
1. It's possible that the commits on the develop branch are not yet merged into the master branch. The "N number of commits ahead" indicates unmerged changes. Check if there's an open pull request or if you need to merge the changes manually.
Check for any open pull requests related to the ”develop” branch.
2. The tool you're using to view changes may not support visualizing squash merge histories effectively. Try using “git diff” or “git log”
Kind regards,
Harut
@Harut Avetisyan thanks for your help, but problem is not solved. below are the more details
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ali,
The explanation for this behavior is similar to the other question of yours I replied to earlier:
If master is your repo's main branch, the Ahead count for develop will show the number of commits that exist on develop and are not reachable from the head of master branch.
If you merged develop into master with squash, the changes were merged into master. However, the commits of develop that you merged with squash still exist on develop and they are not reachable by the head of master branch.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.