-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub commit email as git author email #7122
Comments
Is there any update on this? can someone guide me through the code, i am happy to contribute. |
There are two things that you can do to overwrite some git configuration on Gitpod.
Although there are more ways, such as using the I believe this process will be much more convenient when dotfiles support is there #7337 |
@axonasif that helps. |
For anyone still encountering this issue, here is my solution. It is based on @axonasif's excellent suggestions. Here are the full steps automatically configure your private git committer email:
tasks:
...other tasks...
- name: Configure git committer if needed
init: |
git config --global user.email "${GIT_COMMITTER_EMAIL:-$(git config user.email)}"
Hope this helps someone! |
Thanks for sharing @cooperwalter ! I have one suggestion, you can use |
Is your feature request related to a problem? Please describe
When email privacy is enabled/ commit email is enabled on the github with block command line push with primary email. Currently gitpod configure git user with the primary email which leads to GitHub rejects the commit. User needs to be conscious before starting the work, which i feel adds little manual work for the user, and as a user i am not expecting to do that manually as i am enjoying everything is automated for me already.
Describe the behaviour you'd like
When setting up the gitpod workspace with proper author details. In this case instead of primary email use commit email as author email.
Describe alternatives you've considered
Alternatively if we have user specific variables, so the git author can be configured via init task.
Additional context
Github user email setting
The text was updated successfully, but these errors were encountered: