Ability to set organization-specific primary email for web-based Git operations #177894
Replies: 3 comments 1 reply
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
Another reason for this is keeping commit attribution separate from account recovery. I want to use my work email when merging PRs in my organization, but keep an email I personally control as my account’s primary address. My organization controls my work mailbox, and I don’t control who can access it or what happens to it when I leave. Making it my primary email just to change the default for web-based Git operations also makes it an account recovery address. A per-organization default commit email should be independent of primary and backup email settings. Using a verified work email for commit attribution shouldn’t require trusting that mailbox with recovery of my personal GitHub account. |
|
Short answer: No — GitHub does not currently offer a per-organization default commit/author email for web-based operations, and signing in to an organization via SSO does not set one either. Where no email chooser is shown, the web UI uses your account's primary email. What you can do today:
For local work in general, set the email per repository with with So the per-organization setting you propose does not exist yet. The workarounds are to add (not promote) the work email, choose it wherever a chooser is offered, and use local Git for the operations that offer no chooser. |
Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
Product Feedback
Body
Currently, the commit author email used for web-based Git operations (such as squash merges, editing files in the browser, or creating a repository from a template) is always taken from the account’s global Primary email address setting.
This creates friction for users who work across both personal and organizational contexts:
Proposed feature:
Add the ability to set a default commit/author email address per organization for web-based Git operations.
Benefits:
Example use case:
A developer contributes to open source projects under their personal account but also works in a company organization. They want all commits in the company’s repos to use their work email, while personal repos use their personal email, without manual switching.
For many web-based operations I can select the email, but for certain things like initializing a repository from a template I cannot, and the only way around that is to set my primary email temporarily to my work email.
Bonus: Allow organizations to set the SSO email as the default email for its enterprise and/or organizations.
All reactions