OptionalbranchOptionaldangerouslyWARNING: DESTRUCTIVE AND IRREVERSIBLE. If true, permanently deletes ALL uncommitted changes in the Git folder — staged, unstaged, and untracked files — before updating. Lost data CANNOT be recovered.
NEVER use this on Git folders where users author or edit files. This flag is intended ONLY for automated jobs that treat the Git folder as a read-only mirror of a remote branch and need to force-sync it. If any user has uncommitted work in the Git folder, that work will be permanently destroyed without warning.
Local commits that have been made but not yet pushed to the remote are preserved.
OptionalgitGit credential ID to use for this update operation. The Git credential must be configured for the current user.
OptionalidID of the Git folder (repo) object in the workspace.
OptionalsparseIf specified, update the sparse checkout settings. The update will fail if sparse checkout is not enabled for the repo.
OptionaltagTag that the local version of the repo is checked out to. Updating the repo to a tag puts the repo in a detached HEAD state. Before committing new changes, you must update the repo to a branch instead of the detached HEAD.
Branch that the local version of the repo is checked out to.