{"thread":{"id":"44364","subject":"Reporting Bug in Git Version Control System","startedAt":"2016-10-24T14:28:51Z","lastAt":"2016-10-31T16:09:59Z","messageCount":6,"participants":["Yash Jain","Stefan Beller","Junio C Hamano","Pranit Bauva","Jakub Narębski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"304775","messageId":"CAN8fUZe4iWJCZYqBBDbNyPq1Dz7f4xvTNRVEZgg5AYN2NrKCbg@mail.gmail.com","threadId":"44364","inReplyTo":null,"subject":"Reporting Bug in Git Version Control System","fromName":"Yash Jain","fromEmail":"yashjain.lnm@gmail.com","sentAt":"2016-10-24T14:28:42Z","receivedAt":"2016-10-24T14:28:51Z","isPatch":false,"sender":{"key":"yashjain.lnm@gmail.com","avatar":null},"body":"Hello,\nI have two accounts on github(\"yj291197\" and \"yaki29\").\nBoth the accounts have different gmail IDs(\"yj291197@gmail.com\" and\n\"yashjain.lnm@gmail.com\" respectively) but same passwords.\nI used to use git for \"yj291197\" account and a few days earlier I made\nthis new account and used git commit to commit on \"yaki29\" but it\nappeared as \"yj291197\" committed on \"yaki29's\" repo.\nThen I pulled a request of that commit then it appeared \"yaki29\"\npulled a request with a commit of \"yj291197\".\n\n\n\nAnd during this whole session I was signed in as \"yaki29\" on github.com .\n\n\nPlease reply ....\n"},{"id":"304788","messageId":"CAGZ79ka+_CUxQjB2R-EEk2nKmc_rbj_m7884fLvU9+NgJ5gUug@mail.gmail.com","threadId":"44364","inReplyTo":"CAN8fUZe4iWJCZYqBBDbNyPq1Dz7f4xvTNRVEZgg5AYN2NrKCbg@mail.gmail.com","subject":"Re: Reporting Bug in Git Version Control System","fromName":"Stefan Beller","fromEmail":"sbeller@google.com","sentAt":"2016-10-24T18:23:35Z","receivedAt":"2016-10-24T18:23:42Z","isPatch":false,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"This is a Github issue, so ask Github support.\n\nOr read up on .mailmap files.\n\nOn Mon, Oct 24, 2016 at 7:28 AM, Yash Jain <yashjain.lnm@gmail.com> wrote:\n> Hello,\n> I have two accounts on github(\"yj291197\" and \"yaki29\").\n> Both the accounts have different gmail IDs(\"yj291197@gmail.com\" and\n> \"yashjain.lnm@gmail.com\" respectively) but same passwords.\n> I used to use git for \"yj291197\" account and a few days earlier I made\n> this new account and used git commit to commit on \"yaki29\" but it\n> appeared as \"yj291197\" committed on \"yaki29's\" repo.\n> Then I pulled a request of that commit then it appeared \"yaki29\"\n> pulled a request with a commit of \"yj291197\".\n>\n>\n>\n> And during this whole session I was signed in as \"yaki29\" on github.com .\n>\n>\n> Please reply ....\n"},{"id":"304789","messageId":"xmqqzilt61jo.fsf@gitster.mtv.corp.google.com","threadId":"44364","inReplyTo":"CAGZ79ka+_CUxQjB2R-EEk2nKmc_rbj_m7884fLvU9+NgJ5gUug@mail.gmail.com","subject":"Re: Reporting Bug in Git Version Control System","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2016-10-24T18:32:11Z","receivedAt":"2016-10-24T18:32:28Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Stefan Beller <sbeller@google.com> writes:\n\n> On Mon, Oct 24, 2016 at 7:28 AM, Yash Jain <yashjain.lnm@gmail.com> wrote:\n>> Hello,\n>> I have two accounts on github(\"yj291197\" and \"yaki29\").\n>> Both the accounts have different gmail IDs(\"yj291197@gmail.com\" and\n>> \"yashjain.lnm@gmail.com\" respectively) but same passwords.\n>> I used to use git for \"yj291197\" account and a few days earlier I made\n>> this new account and used git commit to commit on \"yaki29\" but it\n>> appeared as \"yj291197\" committed on \"yaki29's\" repo.\n>> Then I pulled a request of that commit then it appeared \"yaki29\"\n>> pulled a request with a commit of \"yj291197\".\n>>\n>> And during this whole session I was signed in as \"yaki29\" on github.com .\n>>\n>\n> This is a Github issue, so ask Github support.\n>\n> Or read up on .mailmap files.\n\nI am (obviously) not a GitHub support, but I think the confusion is\ncoming from not understanding who the committer and the author of a\ncommit are and where they are coming from.  They are both recorded\nlocally, taken from user.name and user.email configuration variables\nwhen the commits are made.  \"git push\" to propagate them to GitHub\nwill NOT change these values of a commit, once a commit is created.\n\nThe story described looks quite consistent if the user has\nyj291197@gmail.com configured as user.email and kept making commits\nin the local repository, and pushed them to either yj291197 or yaki29\naccounts at GitHub, without ever changing the local configuration to\nuse the other e-mail address.  All commits would record the user and\ne-mail address yj291197, and the only one that may be attributed to\nthe new one yaki29 would be the automerge created at GitHub when a\npull request is responded on-site without first fetching and making\na merge locally.\n\n"},{"id":"304806","messageId":"xmqqh98130vy.fsf@gitster.mtv.corp.google.com","threadId":"44364","inReplyTo":"xmqqzilt61jo.fsf@gitster.mtv.corp.google.com","subject":"Re: Reporting Bug in Git Version Control System","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2016-10-24T21:14:41Z","receivedAt":"2016-10-24T21:14:50Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Junio C Hamano <gitster@pobox.com> writes:\n\n> Stefan Beller <sbeller@google.com> writes:\n>\n>> On Mon, Oct 24, 2016 at 7:28 AM, Yash Jain <yashjain.lnm@gmail.com> wrote:\n>>> Hello,\n>>> I have two accounts on github(\"yj291197\" and \"yaki29\").\n>>> Both the accounts have different gmail IDs(\"yj291197@gmail.com\" and\n>>> \"yashjain.lnm@gmail.com\" respectively) but same passwords.\n>>> I used to use git for \"yj291197\" account and a few days earlier I made\n>>> this new account and used git commit to commit on \"yaki29\" but it\n>>> appeared as \"yj291197\" committed on \"yaki29's\" repo.\n>>> Then I pulled a request of that commit then it appeared \"yaki29\"\n>>> pulled a request with a commit of \"yj291197\".\n>>>\n>>> And during this whole session I was signed in as \"yaki29\" on github.com .\n>>>\n>>\n>> This is a Github issue, so ask Github support.\n>>\n>> Or read up on .mailmap files.\n>\n> I am (obviously) not a GitHub support, but I think the confusion is\n> coming from not understanding who the committer and the author of a\n> commit are and where they are coming from.  They are both recorded\n> locally, taken from user.name and user.email configuration variables\n> when the commits are made.  \"git push\" to propagate them to GitHub\n> will NOT change these values of a commit, once a commit is created.\n>\n> The story described looks quite consistent if the user has\n> yj291197@gmail.com configured as user.email and kept making commits\n> in the local repository, and pushed them to either yj291197 or yaki29\n> accounts at GitHub, without ever changing the local configuration to\n> use the other e-mail address.  All commits would record the user and\n> e-mail address yj291197, and the only one that may be attributed to\n> the new one yaki29 would be the automerge created at GitHub when a\n> pull request is responded on-site without first fetching and making\n> a merge locally.\n\nIOW, this sounds like Pebkac to me.  There is no a thing that needs\nfixing in Git, and I do not immediately see there is anything GitHub\nneeds to fix, either.  The user may need fixing, though ;-).\n\n\n"},{"id":"304821","messageId":"CAFZEwPNB1PX_NOaYzKr+rUKvbC9s5A1G58v5aS=sGdzPVsv4ww@mail.gmail.com","threadId":"44364","inReplyTo":"CAN8fUZe4iWJCZYqBBDbNyPq1Dz7f4xvTNRVEZgg5AYN2NrKCbg@mail.gmail.com","subject":"Re: Reporting Bug in Git Version Control System","fromName":"Pranit Bauva","fromEmail":"pranit.bauva@gmail.com","sentAt":"2016-10-25T08:51:57Z","receivedAt":"2016-10-25T08:53:21Z","isPatch":false,"sender":{"key":"pranit.bauva@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2959938?v=4"},"body":"Hey Yash,\n\nJunio has explained the problem very well. Since you seem to be a\nbeginner (guessing purely by your email) I will tell you how to fix\nit.\n\nRemember when you would have first installed git, you would have done\nsomething like `git config --global user.name <what ever name>` and\n`git config --global user.email <what ever email>`, it gets\npermanently stored in the git configuration file (~/.gitconfig). Now\nall the commits in git are made with this name and email. If you want\nto change this, again run the above commands with your new name and\nemail. After that commits will be done with a different name and\nemail. Hope this helps! :)\n\nRegards,\nPranit Bauva\n"},{"id":"305199","messageId":"fb358e96-02e3-e162-94a6-7cf20ee3f7cf@gmail.com","threadId":"44364","inReplyTo":"CAFZEwPNB1PX_NOaYzKr+rUKvbC9s5A1G58v5aS=sGdzPVsv4ww@mail.gmail.com","subject":"Re: Reporting Bug in Git Version Control System","fromName":"Jakub Narębski","fromEmail":"jnareb@gmail.com","sentAt":"2016-10-31T16:09:47Z","receivedAt":"2016-10-31T16:09:59Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"W dniu 25.10.2016 o 10:51, Pranit Bauva pisze:\n> Hey Yash,\n> \n> Junio has explained the problem very well. Since you seem to be a\n> beginner (guessing purely by your email) I will tell you how to fix\n> it.\n> \n> Remember when you would have first installed git, you would have done\n> something like `git config --global user.name <what ever name>` and\n> `git config --global user.email <what ever email>`, it gets\n> permanently stored in the git configuration file (~/.gitconfig). Now\n> all the commits in git are made with this name and email. If you want\n> to change this, again run the above commands with your new name and\n> email. After that commits will be done with a different name and\n> email. Hope this helps! :)\n\nFirst, per user Git configuration doesn't necessarily go into ~/.gitconfig;\nit could be in ~/.config/git/config\n\nSecond, you can configure user.email and user.name with `git config` or\n`git config --local`.  The information would go into .git/config for\nspecific repository.  This might be a better solution if you want\ndifferent settings for different repositories.\n\n-- \nJakub Narębski\n\n"}]}