Get current branch name.
Future<String> getBranch({String? cwd}) async { final result = await _runGit(['rev-parse', '--abbrev-ref', 'HEAD'], cwd: cwd); return result.stdout.trim(); }