branch_get_upstream function

Get remote tracking branch