missing github email address in commits
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2025 04:37 AM
Hello everyone,
I would like to configure github client on my databricks workspace. Especially an email address in not visible and is replace by my github user name. Do you know how I can do that?
- Labels:
-
Github
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2025 06:08 AM
git config command to set the appropriate configurations globally or locally for your repository.-
Set your Git Configuration for Username: You can set your GitHub username globally using the following command:
bash git config --global user.name "YourGitHubUsername"Replace"YourGitHubUsername"with your actual GitHub username. -
Set your Git Configuration for Email: To mask the email associated with your commits, GitHub provides a "noreply" email format that can be linked to your GitHub account. Use the following command:
bash git config --global user.email "YourGitHubUsername@users.noreply.github.com"Replace"YourGitHubUsername@users.noreply.github.com"with the noreply email provided by GitHub.You can verify and set this email in your GitHub account settings. Navigate to:- GitHub Settings > Emails > Ensure you add and confirm the
@users.noreply.github.comemail to your account.
- GitHub Settings > Emails > Ensure you add and confirm the
-
Install and Configure GitHub Client in Databricks:
- Link your GitHub account in Databricks under User Settings > Linked Accounts.
- Configure Git credentials with a fine-grained Personal Access Token (PAT) or use OAuth 2.0 for authentication as described in Microsoft Learn. This step allows Databricks to act on your behalf during Git operations performed within the workspace.
-
Verify Configuration: After setting the configuration, verify the changes:
bash git config --listThis will display all the current configuration, including the username and masked email settings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2025 06:31 PM
@Louis_Frolio Where should we execute this commands?
When I tried running these commands in workspace from terminal or from notebook I am getting following error
Commands I tried
%sh
git config --global user.name "USERNAME"
git config --global user.email "NOREPLY_EMAIL_ADDRESS"
error: could not lock config file /Workspace/.proc/self/git/config: No such file or directory
error: could not lock config file /Workspace/.proc/self/git/config: No such file or directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 05:37 AM
Why the Can Error Occur
- Databricks now sets the environment variable GIT_CONFIG_GLOBAL=/Workspace/.proc/self/git/config in notebooks and web terminals, so when you run any git --global command, Git tries to read/write the config at that path.
- On some cluster types (especially serverless and web terminal):
- Databricks automatically sets up this virtual config file using workspace file system (WSFS)—but only if the right supporting services and preview features are enabled for your workspace and cluster type.
- If the supporting back-end (CP APIs, WSFS, or feature flags) isn’t available or not yet rolled out in your environment, that virtual config file simply doesn’t exist—resulting in the "No such file or directory" locking error.
- This also happens on some free-tier or newer workspaces where the data plane-to-control plane integration for the Git config has not been fully configured or enabled yet
Tell me more about your environment? Are you on community edition? Are you a customer of Databricks?
Louis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 11:17 PM
@Louis_Frolio I have reached out to you on LinkedIn to share info more privately. Thanks for the reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2025 07:11 PM - edited 07-27-2025 07:12 PM
@Louis_Frolio Hi Louis,
I am using Enterprise databricks version. Could you please share the exact name of the features that needs to be enabled that I can ask my account team to enable this for us ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 03:23 PM
Have you tried configuring it through the UI?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 05:34 PM
I did try to check there but if I use Databricks App method to connect to Github (not the PAT) then it doesn't allow me to configure email address