This may sound like a strange request, but after having just spent hours wrestling with GIT I would like extra confirmation that my local repo is really in the state it is telling me.
You dont need to verify it.
Using the fetch command you r local repository will be up to date with the remote repository.
Simply run this command:
# update the local repo with all the changes from the remote repo # including tags, branches and remove deleted branches as well git fetch --all --prune
git fetch
Fetch branches and/or tags (collectively, "refs") from one or more other repositories, along with the objects necessary to complete their histories.
Remote-tracking branches are updated .
--all
Fetch all remotes.
-p / --prune
After fetching, remove any remote-tracking references that no longer exist on the remote.
Tags are not subject to pruning if they are fetched only because of the default tag auto-following or due to a --tags option.
However, if tags are fetched due to an explicit refspec (either on the command line or in the remote configuration, for example if the remote was cloned with the --mirror option), then they are also subject to pruning.
git diff -- origin/masterassuming your local is on the master branch? if it's not, just shift theorigin/<branch>