Check if HEAD is on a remote-tracking branch.
Future<bool> getIsHeadOnRemote({String? cwd}) async { final result = await _runGit(['rev-parse', '@{u}'], cwd: cwd); return result.code == 0; }