pub fn push_branch(branch: &str) -> Result<PushResult>Expand description
Push the current branch to origin with upstream tracking
Uses git push --set-upstream origin <branch> to push the branch
and set up tracking. If the branch already exists on remote, it will
still push any new commits.
§Arguments
branch- The branch name to push
§Returns
PushResult::Success- Push completed successfullyPushResult::AlreadyUpToDate- Branch is already up-to-datePushResult::Error(msg)- Push failed with error message