Set the upstream configuration for a given local branch
the branch to configure
remote-tracking or local branch to set as upstream. Pass NULL to unset.
0 or an error code