discontinuedPackage git_assistant has been discontinued.

allOpt method

PushGitChain allOpt()

Generates --all option

As you know you can't use --all and 'remote branch' together. In the git-assistant package you shouldn't use allOpt() and to(remote: '', refspec: '') together.

var git = Git();
git.push.allOpt().exec(); // it's fine
// you will get exception from git itself
git.push.allOpt().to(remote: 'origin', refspec: 'master').exec();

Implementation

PushGitChain allOpt() {
  return _createPushOption('--all');
}