pitosalas pitosalas - 1 year ago 56
Git Question

Does "git status" actually check whether upstream repo matches my repo?

It doesn't look like

git status


actually checks whether my commits on github for example are fully in sync with my local state. Which isn't surprising because of the performance issues. How do I force a true check?

Answer Source

You need to do a fetch first. This will update your local repo to match the remote.

git fetch origin
git status

Fetch will not change your working directory, like git pull does.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download