Checking local repo is synced with remote.

Fixes #1.