My First Recommendation: Test Git CLI Instead of the Standard Git Folder
Databricks offers a feature called Git CLI access, currently in Public Preview.
It allows you to execute Git commands directly on Serverless Compute, including through the Web Terminal.
According to the documentation:
Git Folders created through the UI automatically receive Git CLI access when the workspace is eligible.
Clones performed through the Web Terminal always have Git CLI access.
This feature allows you to perform standard Git operations directly in the Serverless environment.
Reference: Databricks on AWS โ Git CLI access.
I would run this test before trying anything else.
Procedure:
Open the Databricks Web Terminal.
Clone the repository into a new directory:
cd /Workspace/Users/<username>
git clone --branch develop \
https://github.com/<org>/<repo>.git \
repo-test
Navigate to the cloned repository:
cd repo-test
Make a small change to a .py file:
echo "# git test" >> sample_trips_dbrain_lakeflow.py
Run the following commands:
git status
git diff
git add sample_trips_dbrain_lakeflow.py
git status
How to interpret the results:
If everything works: This strongly suggests an issue specific to the standard Git Folder implementation or its integration with the workspace editor.
If the same Input/output error occurs: The issue may be broader, potentially involving filesystem access within the Databricks workspace.
This test does not guarantee a fix, but it should help isolate the root cause.
Mateus Moreira | Data Analyst Engineer