Skip to main content

delete_remote_branch

Function delete_remote_branch 

Source
pub async fn delete_remote_branch(branch: &str) -> Result<()>
Expand description

Delete a remote git branch.

Uses git push origin --delete <branch>.

§Errors

Returns an error if:

  • The git command fails
  • The remote branch does not exist
  • Authentication fails