setUpstreamOpt method
Generates --set-upstream option.
Adds 'remote refspec' if both remote and refspec are provided.
Implementation
PushGitChain setUpstreamOpt({String? remote, String? refspec}) {
if (remote != null && refspec != null) {
return _createPushOption('--set-upstream $remote $refspec');
}
return _createPushOption('--set-upstream');
}