pushRemote function

Future<bool> pushRemote()

Implementation

Future<bool> pushRemote() async {
  final branchName = await getCurrentBranchName();
  final process =
      await Process.start("git", ['push', '-u', 'origin', branchName]);
  await stdout.addStream(process.stdout);
  await stderr.addStream(process.stderr);
  await process.exitCode;
  return checkProcessCode(await process.exitCode);
}