Skip to main content

git_push_upstream

Function git_push_upstream 

Source
pub fn git_push_upstream() -> Result<()>
Expand description

Pushes the current branch to its upstream remote.

§Errors

Returns an error if the push fails, if there is no upstream configured, or if the repository cannot be accessed.

§Examples

use rusty_commit::git;

git::git_push_upstream().unwrap();