-
Notifications
You must be signed in to change notification settings - Fork 9.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
Improper commit attribution #610
Comments
Or you can add an email address through the API and take away all the manual work... |
#3876 was raised by @LitenUpNet as the user had switched accounts but |
Noodling on this idea some more, we could change the commit avatar to indicate there's a problem needing attention: (Yes, I'm going to continue to abuse Clicking on this could show a dialog which then explains the situation and helps the user resolve this, e.g: "The email address you are using for this GitHub repository isn't associated with your GitHub account. Want to add it to your GitHub account now?" This could also potentially also address:
|
This might also be relevant for #5686. |
|
Updated the original issue here to attempt to frame the problems. @niik Are you planning on looking at this in the context of #5686? If not, maybe @ampinsk could take a look at it as a smaller design task. It's something that @steveward brought up as still one of the most frequent causes of confusion for users. |
@niik and I chatted about this this morning, and his exploration of the welcome flow in #5686 will indeed take the git config into account here to hopefully warn folks when they get set up on Desktop if there is a mismatch between their Git and GitHub setup. Additionally, we think it would be reasonable to get some metrics in around percentage of commits (and absolute number) of commits in Desktop without attribution to see how widespread a problem it is and if it's worth tackling more broadly outside of just the welcome flow. I'm going to make a separate issue for metrics on that. |
|
As part of an exercise I did a walk-though of setting up GitHub and Desktop as a "new" user. All was rather easy and straight-forward, expect for setting up and explanation of git. Although we provide a short description in onboarding, I think we can do a better job of explaining its purpose and the distinction between GitHub and git. There are a couple of ideas worth revisiting in #4002 It would be great to open up a dialogue again and see if any action items come out of it. |
Needed because Fork Behavior is optional, and breaks everything if we add a tab after it.
Assume the local comitter data can be null
Needed because Fork Behavior is optional, and breaks everything if we add a tab after it.
Assume the local comitter data can be null
Co-Authored-By: Billy Griffin <5091167+billygriffin@users.noreply.github.com> Co-Authored-By: Amanda Pinsker <10404068+ampinsk@users.noreply.github.com> Co-Authored-By: tidy-dev <75402236+tidy-dev@users.noreply.github.com>
@tierninho Could you elaborate or direct me to on what the difference is between git and github and how that applies to github desktop and commit attribution? What I'm looking for is a single login point, it doesn't make sense that I have to log in and additionally as a second step configure the "git" tab. |
@kaster14 GitHub uses the email in your .gitconfig to associate commits with your GitHub account. Configuring your name and email in Git is not any sort of authentication -- it's just metadata about who created the commit. This help article has some more information, but let me know if you have any specific questions. |
Thanks @steveward for the link - I guess I don't understand the need for an email address to be used. What I am looking for is: "I sign into github desktop then when I make commits I expect to see my account name and avatar picture with the commit in the history tab (of github desktop), that name/avatar I would expect to be based off of the account I used to sign into github desktop. |
GitHub Desktop does automatically use your name and email when you first log in through the application. We have also put in measures to detect if you are committing with an email address that is not associated with your current account. You will see a warning in the commit summary box and there is a dropdown to select a correct email address. #11760 is also tracking the ability to change the name in this field. Support for multiple accounts is being tracked in #3707. You can follow along for updates about that. |
Problem statements:
If the email in my Git config doesn't match any emails on my account in GitHub.com, commits I push are not properly attributed to my GitHub account.
Commits in my repository history are not attributed to a GitHub account, so I don't have confidence or peace of mind about who actually made the commit.
As a beginner to Git and GitHub, I don't understand why they're different or why my Git info might not match my GitHub info, and why it matters. This is just confusing. (from "Configure git" page unfriendly to beginners #4002)
If I sign out of my account and back in with a different GitHub account on the same machine, I may see an unexpected avatar based on my underlying Git email that doesn't match the GitHub account I'm signed in with (from Avatar doesn't update with other user logging on #6973)
I want to commit in some repositories with my personal email, and in other repositories with my work email (from Set commit e-mail by repository #9218). This is a slightly different version of (4) I think.
Considerations:
From @niik at #574 (review):
The text was updated successfully, but these errors were encountered: