Ggit.Branch.set_upstream

### Method

# Ggit Branchset_upstream

#### Declaration [src]

    void
    ggit_branch_set_upstream (
      GgitBranch* branch,
      const gchar* upstream_branch_name,
      GError** error
    )

#### Description [src]

Sets the upstream branch, for a given local branch reference.

#### Parameters

`upstream_branch_name` | `const gchar*`
| Name of the upstream branch; if `NULL` unsets it.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.