Get the upstream name of a branch
Given a local branch, this will return its remote-tracking branch information, as a full reference name, ie. "feature/nice" would become "refs/remote/origin/feature/nice", depending on that branch's configuration.
reference name of the local branch.
0 on success, GIT_ENOTFOUND when no remote tracking reference exists, or an error code.