Is it possible to clone a private repository and use it in databricks Repos?

Andyfcx
Databricks Partner

As title, I need to clone code from my private git repo, and use it in my notebook,

I do something like

def cmd(command, cwd=None):
   process = subprocess.Popen(command.split(), stdout=subprocess.PIPE, cwd=cwd)
   output, error = process.communicate()
   print (output.decode())
   if error is not None:
      print ("----\n"+error.decode())

But I have to do this, redefine this function all the time.

I think this is cumbersome,

Is there a way that I could clone the repo into the "Repos" which databricks offered in the left side bar, and have full version control with databricks?

(I am not installing published packages from pip)