Synchronizes a local git repository to a remote location.