The master branch in my local repo is showing a push badge with increasing numbers. I know it is up-to-date with the remote master, because all changes in local branches have been pulled and merged into the remote master. But every time I fetch and pull from the remote to update my local repo, the local master appears to be ahead of the remote by one more commit. But I know the two masters are identical.
(not sure how all this started, I may have done a forced push to the origin, at somepoint...?)
Would 'git pull --rebase origin master'
help get the local master match the remote? Or would it it be git reset --hard remote/master
?
And how could I avoid the two branches getting out of sync again?