pull method

Future<void> pull({
  1. bool rebase = false,
  2. String? workDir,
})

Pulls from the upstream branch.

Implementation

Future<void> pull({bool rebase = false, String? workDir}) async {
  final args = <String>['pull'];
  if (rebase) args.add('--rebase');
  await _runGit(args, workDir: workDir ?? defaultWorkDir);
}