getCurrentBranchName function

Future<String> getCurrentBranchName()

Implementation

Future<String> getCurrentBranchName() async {
  final result = await Process.run("git", ['branch', '--show-current']);
  return result.stdout.trim().toString();
}