Access Git folder information from notebook
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2024 05:14 AM - edited 09-28-2024 05:15 AM
In my Workspace, I have a repository with Git folder.
I would like to access programatically with Python from within a notebook:
- name of the repo
- currently checked out branch in the repo
I want to do this in two different ways:
(1) Access said information in a notebook inside the repo's working directory
(2) Access said information in a notebook outside the repo's working directory
Can I achieve both aims, and how?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2024 06:00 AM
Hi @johnb1 ,
You can use one of the following options to achieve what you want:
- databricks CLI repos commands
- databricks python SDK
- databricks rest API calls

