Updates the repo to the given branch or tag.
Arguments
- repo_id
The ID for the corresponding repo to access.
- branch
Branch that the local version of the repo is checked out to.
- tag
Tag that the local version of the repo is checked out to.
- host
Databricks workspace URL, defaults to calling
db_host()
.- token
Databricks workspace token, defaults to calling
db_token()
.- perform_request
If
TRUE
(default) the request is performed, ifFALSE
the httr2 request is returned without being performed.
Details
Specify either branch
or tag
, not both.
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.
See also
Other Repos API:
db_repo_create()
,
db_repo_delete()
,
db_repo_get()
,
db_repo_get_all()