gg upstream [-b BRANCH] [REF]
query or set upstream branch
If no positional arguments are given, the branch’s upstream branch is printed to stdout (defaulting to the current branch if none given).
If a ref argument is given, then the branch’s upstream branch
settings) will be set to the given value.
- -b branch
- branch to query or modify