Skip to main content

git_delete_remote_branch

Function git_delete_remote_branch 

Source
pub fn git_delete_remote_branch(
    repo_root: &Path,
    remote: &str,
    branch: &str,
) -> Result<(), GitError>
Expand description

Deletes a branch from the specified remote repository.

Executes git push <remote> --delete <branch>.

ยงExample

use std::path::Path;
use git_claw::infra::git::git_delete_remote_branch;

git_delete_remote_branch(Path::new("."), "origin", "feature/login")?;