Logo

dev-resources.site

for different kinds of informations.

Why your git email address matters

Published at
4/10/2022
Categories
opensource
git
bestpractices
transparency
Author
juliaferraioli
Author
14 person written this
juliaferraioli
open
Why your git email address matters

Cross-posted from juliaferraioli.com

When you were getting started with open source – and especially with git, you probably ran across guidance that told you to run commands such as this:

$ git config --global user.name "Your Name"

$ git config --global user.email [email protected]
Enter fullscreen mode Exit fullscreen mode

to set your git username and email address.

It's an easy way to make sure that whichever repository you're contributing to, and wherever its canonical source lives, your commits are associated with you. Effectively signing your name or open source identity to your commits is a Good Thingâ„¢, because it allows the project to identify recurring contributors, (selfishly) provides people like me a way to do some analysis on git data, and more.

That said, the email address that you use matters.

We all operate in different contexts. I have personal, volunteer, side-project, and corporate contexts – and different email addresses associated with each of them. The email address that I use for a specific commit tells the project in which context my contribution has been made.

So in addition to (or instead of) running setting a global configuration for your email address, you can run:

$ git config user.email [email protected]
Enter fullscreen mode Exit fullscreen mode

within your clone of a specific repository to configure the email address that your commits should use. If you have set a global user.email as well, that's what commits will use if you haven't set one within a repository (git-scm documentation that describes this behavior).

As open source gains traction in nearly all (quite possibly all) industries with more companies and organizations contributing back to open source projects they use (also a Good Thingâ„¢), it is important to signal under which context people are contributing. Am I being a good open source citizen by fixing bugs in a framework that my employer uses? Am I trying to improve a library that opensourcestories.org uses? Or am I contributing because I find the project interesting?

These are some possible scenarios where the additional information provided by your commit's email address can give maintainers more insight into your motivations.

It's a bit more work for you, but transparency is a core value of open source. Be transparent about your affiliation, and be thoughtful about your email address!

transparency Article's
28 articles in total
Favicon
Data Privacy and Ethics: How to Safeguard User Data and Build Trust
Favicon
Ethical Considerations in Implementing AI Solutions in Your Business
Favicon
Decentralized Application Gold Standard
Favicon
Let's go opensource
Favicon
Embracing Transparency: Dr. Allan Friedman's Vision for Open Source Security
Favicon
Building in public - A simple guide
Favicon
Building Trust with Transparency: How AI Chatbots Can Improve Data Privacy
Favicon
Navigating Online Safety with FreeISOBurner.com: A Trustworthy Platform
Favicon
Revolutionizing Online Gambling: How Blockchain Technology Ensures Transparency and Equity
Favicon
Revolutionizing Online Gambling: The Power of Blockchain Technology
Favicon
Blockchain's Impact on B2B Retail
Favicon
Why open source projects should embrace operational transparency
Favicon
Secure TCP tunnel from anywhere with curl and nc for single connection
Favicon
Why your git email address matters
Favicon
Celebrate quitting
Favicon
Fairness, Accountability & Transparency (F.Acc.T) under GDPR
Favicon
Productive transparency in online communities: Inspiration from trains and IKEA
Favicon
Does your company periodically share the result of each quarter with the whole team?
Favicon
Let's get back to basics with online advertising
Favicon
What does it mean to be an Open Startup?
Favicon
Utilizing a Rubric to share expectations of the QA Engineer Role
Favicon
Beyond the login screen - Part II
Favicon
Beyond the login screen - Part I
Favicon
Windows command-line tip: Easily Change Window Transparency
Favicon
Developers Must Choose Collaboration in an All-Remote world (Part 2)
Favicon
We are all Remote Developers: Working From Home (Part 1)
Favicon
All Remote: Transparency becomes essential when working all-remote (Part 3)
Favicon
All Remote: Documenting your code is now essential. There is a better way. (Part 4)

Featured ones: