Hide email address from commits #297

Closed
opened 1 year ago by ivan-paleo · 13 comments

Is there a way to hide my email address and name from commits (see attached screenshot - ignore the fact that I used the GitHub address by mistake)?

My email address is hidden as per Public Profile settings, but apparently, it is still in the git log.
Additionally, I'd like only the username to be shown, not the full name.

Is there a way to hide my email address and name from commits (see attached screenshot - ignore the fact that I used the GitHub address by mistake)? My email address is hidden as per Public Profile settings, but apparently, it is still in the `git log`. Additionally, I'd like only the username to be shown, not the full name.
hw commented 1 year ago
Owner

Git command line commands on your local host do not care, -- do not even know about -- about your profile settings in UI.

The commit log email id is used by gitea to match the avatar to commits in UI items.

There is no need to use your primary email address in the commits, you can add a secondary that you use for commit logs only.

Another option is to leave it empty, then the anonymous avatar will be shown in UI items.

Git command line commands on your local host do not care, -- do not even know about -- about your profile settings in UI. The commit log email id is used by gitea to match the avatar to commits in UI items. There is no need to use your primary email address in the commits, you can add a secondary that you use for commit logs only. Another option is to leave it empty, then the anonymous avatar will be shown in UI items.
Poster

Thank you for the explanation. Obviously, my knowledge is limited in these issues; I hope that I haven't missed the point!

I think it makes sense to identify my commits and link to my profile. But my profile is set so that the email address is hidden; on the other hand, my commits give my email address away.

Wouldn't it make sense to also hide the email address for commits? And I really mean "hide" here, i.e. it is used to match the avatar, but it is not shown to everyone. To me, this would be some kind of fundamental privacy setting.

Thank you for the explanation. Obviously, my knowledge is limited in these issues; I hope that I haven't missed the point! I think it makes sense to identify my commits and link to my profile. But my profile is set so that the email address is hidden; on the other hand, my commits give my email address away. Wouldn't it make sense to also hide the email address for commits? And I really mean "hide" here, i.e. it is used to match the avatar, but it is not shown to everyone. To me, this would be some kind of fundamental privacy setting.
Poster

As far as I've understood it, GitHub associates a no-reply address to your primary address, in order to hide your true email address, but still keep the functionality.

Something worth considering?

As far as I've understood it, GitHub associates a [no-reply address](https://docs.github.com/en/free-pro-team@latest/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address) to your primary address, in order to hide your true email address, but still keep the functionality. Something worth considering?
6543 commented 1 year ago
Collaborator

@ivan-paleo this make no sence since you always will be able to fetch commits via git - if repo is public

@ivan-paleo this make no sence since you always will be able to fetch commits via git - if repo is public
Poster

@ivan-paleo this make no sence since you always will be able to fetch commits via git - if repo is public

As I said, I know nothing about the technical side of things. I'm just wondering whether there is a way to hide email addresses. That would be a great privacy feature. But if that is not technically (or not easily) feasible, then it's a different matter...

> @ivan-paleo this make no sence since you always will be able to fetch commits via git - if repo is public As I said, I know nothing about the technical side of things. I'm just wondering whether there is a way to hide email addresses. That would be a great privacy feature. But if that is not technically (or not easily) feasible, then it's a different matter...

For GitHub, you can always use the no-reply address in your git commits as well (I did that for a while). So a no-reply address here would work just as well.

For GitHub, you can always use the no-reply address in your git commits as well (I did that for a while). So a no-reply address here would work just as well.
Poster

For GitHub, you can always use the no-reply address in your git commits as well (I did that for a while). So a no-reply address here would work just as well.

Indeed. But the difference with GitHub is that GitHub generates such a no-reply address. It would be nice if Codeberg could do that too, or something similar (or better).

> For GitHub, you can always use the no-reply address in your git commits as well (I did that for a while). So a no-reply address here would work just as well. Indeed. But the difference with GitHub is that GitHub generates such a no-reply address. It would be nice if Codeberg could do that too, or something similar (or better).
n commented 1 year ago
Collaborator

For GitHub, you can always use the no-reply address in your git commits as well (I did that for a while). So a no-reply address here would work just as well.

Indeed. But the difference with GitHub is that GitHub generates such a no-reply address. It would be nice if Codeberg could do that too, or something similar (or better).

I think that would be username@noreply.codeberg.org, which is automatically used in web commits.

> > For GitHub, you can always use the no-reply address in your git commits as well (I did that for a while). So a no-reply address here would work just as well. > > Indeed. But the difference with GitHub is that GitHub generates such a no-reply address. It would be nice if Codeberg could do that too, or something similar (or better). I think that would be `username`@noreply.codeberg.org, which is automatically used in web commits.
hw commented 1 year ago
Owner

I think that would be username@noreply.codeberg.org, which is automatically used in web commits.

Yes, this.

> > I think that would be `username`@noreply.codeberg.org, which is automatically used in web commits. Yes, this.
hw commented 1 year ago
Owner

@lhinderberger @n @ivan-paleo : would it make sense to mention this in the docs?

@lhinderberger @n @ivan-paleo : would it make sense to mention this in the docs?

@hw There's now an infobox about it in PR Codeberg/Documentation#90

@hw There's now an infobox about it in PR Codeberg/Documentation#90

With the PR merged, I'll close this issue for now. If the question arises more frequently, we should add it to the FAQ section of the Documentation as well.

With the PR merged, I'll close this issue for now. If the question arises more frequently, we should add it to the FAQ section of the Documentation as well.
lhinderberger closed this issue 1 year ago

With the PR merged, I'll close this issue for now. If the question arises more frequently, we should add it to the FAQ section of the Documentation as well.

I think this should even be mentioned as part of the settings. This is the first place I looked for this, and presumably others would do the same. It was only by looking though issues and then happening to stumble upon the merged request linked in this issue that I found out how to do this. Its place in the docs does make sense for beginners wo follow the docs, but when looking specifically for this feature, it is hard to find.

> With the PR merged, I'll close this issue for now. If the question arises more frequently, we should add it to the FAQ section of the Documentation as well. I think this should even be mentioned as part of the settings. This is the first place I looked for this, and presumably others would do the same. It was only by looking though issues and then happening to stumble upon the merged request linked in this issue that I found out how to do this. Its place in the docs does make sense for beginners wo follow the docs, but when looking specifically for this feature, it is hard to find.
Sign in to join this conversation.
No Milestone
No Assignees
7 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.