Thanks to visit codestin.com Credit goes to libgit2.org
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