paperlined.org
apps > git > HOWTO
document updated 12 years ago, on Apr 6, 2012

What are the steps to check that local repo is synced with a remote one?

confirm that all tracking branches are synced up

Use git ls-remote -h <remote> <branch> to find out the latest version on the remote side. Confirm that the local branch is neither ahead (which would indicate that we need to push) or behind (which would indicate that we need to pull).

confirm that there are no local changes that need to be checked in

git diff HEAD