cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Access Git folder information from notebook

johnb1
Contributor

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?

1 REPLY 1

szymon_dybczak
Contributor III

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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group