Using Databricks Repos, you can add a git repo to Databricks and execute git actions such as git pull
. This is done by clicking on the branch name in the top left, and clicking the button saying "Pull".
I would like to do this without clicking on things in my browser.
- What is the Databricks CLI syntax for triggering a git pull on a given repo?
- What is the Databricks API endpoint for triggering a git pull on a given repo?
I would assume that both are possible (this answer implies so), but providing just one would be sufficient to answer my question.
One might wonder what I expect to happen if a pull is non-trivial, eg. the branches have diverged or "your unstaged changes would be wiped out by pulling...". Simply erroring out would be sufficient in this case. I intend to ensure that it will never happen through other mechanisms.
repos update
as I was browsing through the docs, but somehow I thought it was updating something else besides the git state. Should have read more carefully I guess. I tried your commands and they worked, thanks a bunch! – Bobbobb