Set a branch's upstream branch
This will update the configuration to set the branch named branch_name as the upstream of branch. Pass a NULL name to unset the upstream information.
@note the actual tracking reference must have been already created for the operation to succeed.
the branch to configure
remote-tracking or local branch to set as upstream.
0 on success; GIT_ENOTFOUND if there's no branch named branch_name or an error code
See Implementation
Set a branch's upstream branch
This will update the configuration to set the branch named branch_name as the upstream of branch. Pass a NULL name to unset the upstream information.
@note the actual tracking reference must have been already created for the operation to succeed.