How do I import a notebook from workspaces to repos?

Ullsokk
New Contributor III

I have a few notebooks in workspaces that I created before linking repo to my git. I have tried importing them from the repo (databricks repo). The only two options are a local file from my pc or a url. The url for a notebook does not work. Do I need to download the notebooks to my pc before uploading them? How can I import a notebook from the workspace to repo?