title: Execute git pull on databricks notebook using CLI and/or API
body: <p>Using Databricks Repos, you can add a git repo to Databricks and execute git actions such as <code>git pull</code>. This is done by clicking on the branch name in the top left, and clicking the button saying &quot;Pull&quot;.</p>
  <p>I would like to do this without clicking on things in my browser.</p>
  <ul>
  <li>What is the Databricks CLI syntax for triggering a git pull on a given repo?</li>
  <li>What is the Databricks API endpoint for triggering a git pull on a given repo?</li>
  </ul>
  <p>I would assume that both are possible (<a href="https://stackoverflow.com/a/58836940/15629542">this answer</a> implies so), but providing just one would be sufficient to answer my question.</p>
  <hr />
  <p>One might wonder what I expect to happen if a pull is non-trivial, eg. the branches have diverged or &quot;your unstaged changes would be wiped out by pulling...&quot;. Simply erroring out would be sufficient in this case. I intend to ensure that it will never happen through other mechanisms.</p>