pub fn push(&self) -> Result<(), git2::Error> {
        self.repo
            .find_remote("origin")?
            .push(&["refs/heads/master:refs/heads/master"], None)?;

        Ok(())
    }
/// Push all commits to the configured remotes
Push all commits to the configured remotes
Push all commits to the configured remotes
pub fn push(&self) -> Result<(), git2::Error> {
        self.repo
            .find_remote("origin")?
            .push(&["refs/heads/master:refs/heads/master"], None)?;
        Ok(())
    }
pub fn push ( & self ) -> Result < ( ) , git2 :: Error > { self . repo . find_remote ( " " ) ? . push ( & [ " " ] , None ) ? ; Ok ( ( ) ) }
Push all commits to the configured remotes
Push all commits to the configured remotes
&self