pub fn reset(
open_repository: &dyn OpenRepositoryLike,
repo_details: &RepoDetails,
branch_name: &BranchName,
to_commit: &GitRef,
force: &Force,
) -> Result<()>
Expand description
Resets the position of a branch in the remote repo
Performs a ‘git fetch’ first to ensure we have up-to-date branch positions before
performing git push
.
§Errors
Will return an Err
if their is no remote fetch defined in .git/config, or
if there are any network connectivity issues with the remote server.