Skip to main content

push

Function push 

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

Pushes changes to a remote repository.

§Parameters

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

§Returns

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