push method
Pushes to a remote.
Implementation
Future<void> push({
String? remote,
String? branch,
bool force = false,
bool setUpstream = false,
String? workDir,
}) async {
final args = <String>['push'];
if (force) args.add('--force');
if (setUpstream) args.add('--set-upstream');
if (remote != null) args.add(remote);
if (branch != null) args.add(branch);
await _runGit(args, workDir: workDir ?? defaultWorkDir);
}