cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Changing git's author field when committing through Databricks

rcostanza
New Contributor III

I have a git folder to a Bitbucket repo. Whenever I commit something, the commit uses my Bitbucket username (the unique name) in the field author, making it less readable when I'm reading a list of commits.

For example, commits end up like this:

 

commit c26aoin21o3dj1203n1o2j3ndlkjnlwjcne90we (origin/mybranch)
Author: myusername <myusername>
Date:   Thu Oct 10 17:25:37 2024 +0000

 

If I were to fix this in my local git installation, I'd need to use these commands to have it using my name & email as author instead:

git config --global user.name "My Name"
git config --global user.email "my@email.com"

So commits would look like this instead:

 

commit c26aoin21o3dj1203n1o2j3ndlkjnlwjcne90we (origin/mybranch)
Author: My Name <my@email.com>
Date:   Thu Oct 10 17:25:37 2024 +0000

 

 I can't seem to find a way to do that on Databricks. Is it possible?

1 ACCEPTED SOLUTION

Accepted Solutions

NandiniN
Databricks Employee
Databricks Employee

Hi @rcostanza ,

I think this is the exact issue https://databricks.aha.io/ideas/ideas/DB-I-10105 you are facing, it is a feature request and you can upvote it.

So, Currently, it is not possible to configure the author name and email for commits directly within Databricks to reflect your desired format (i.e., using your name and email instead of your Bitbucket username). The configuration commands you mentioned (git config --global user.name "My Name" and git config --global user.email "my@email.com") are specific to local Git installations and cannot be applied within the Databricks environment.

Thanks!

View solution in original post

4 REPLIES 4

NandiniN
Databricks Employee
Databricks Employee

Hi @rcostanza ,

I think this is the exact issue https://databricks.aha.io/ideas/ideas/DB-I-10105 you are facing, it is a feature request and you can upvote it.

So, Currently, it is not possible to configure the author name and email for commits directly within Databricks to reflect your desired format (i.e., using your name and email instead of your Bitbucket username). The configuration commands you mentioned (git config --global user.name "My Name" and git config --global user.email "my@email.com") are specific to local Git installations and cannot be applied within the Databricks environment.

Thanks!

rcostanza
New Contributor III

Thanks for the reply

I tried checking the link you provided but it seems it's a restricted system. Is there another place I can upvote it?

NandiniN
Databricks Employee
Databricks Employee

Oh, sorry it is internal. If you have an account executive you work with, they can help you with adding the details of the company etc.

yermulnik
New Contributor II

Just found us suffering from the same issue since we enforced a GitHub ruleset to require commit emails to match our Org email pattern of `*@ourorgdomain.com`.

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