Synchronizes a git repository to a remote location.