Skip to main content

push_tag

Function push_tag 

Source
pub fn push_tag(_path: &Path, _remote: &str, _tag_name: &str) -> Result<()>
Expand description

Pushes a git tag to a remote repository.

§Parameters

  • path: The path to the git repository.
  • remote: The name of the remote repository (e.g., “origin”).
  • tag_name: The name of the tag to push.

§Returns

  • Ok(()) if the tag was pushed successfully.
  • Err(Error) if an error occurred during the push process.