public setUpstream ( string | false $upstream, string | null $dir = null, boolean $mustRun = false ) : boolean | ||
$upstream | string | false | The upstream name, or false to unset the upstream. |
$dir | string | null | The path to a Git repository. |
$mustRun | boolean | Enable exceptions if the Git command fails. |
return | boolean |