Skip to main content

prune_remote_refs

Function prune_remote_refs 

Source
pub fn prune_remote_refs(path: impl AsRef<Path>) -> Result<(), GitOpsError>
Expand description

Prune stale remote-tracking references.

Runs git remote prune origin to remove local references to remote branches that no longer exist. This is useful for cleaning up git state.

ยงArguments

  • path - Path to the git repository (or worktree)