* Reporting Bug in Git Version Control System @ 2016-10-24 14:28 Yash Jain 2016-10-24 18:23 ` Stefan Beller 2016-10-25 8:51 ` Pranit Bauva 0 siblings, 2 replies; 6+ messages in thread From: Yash Jain @ 2016-10-24 14:28 UTC (permalink / raw) To: git Hello, I have two accounts on github("yj291197" and "yaki29"). Both the accounts have different gmail IDs("yj291197@gmail.com" and "yashjain.lnm@gmail.com" respectively) but same passwords. I used to use git for "yj291197" account and a few days earlier I made this new account and used git commit to commit on "yaki29" but it appeared as "yj291197" committed on "yaki29's" repo. Then I pulled a request of that commit then it appeared "yaki29" pulled a request with a commit of "yj291197". And during this whole session I was signed in as "yaki29" on github.com . Please reply .... ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Reporting Bug in Git Version Control System 2016-10-24 14:28 Reporting Bug in Git Version Control System Yash Jain @ 2016-10-24 18:23 ` Stefan Beller 2016-10-24 18:32 ` Junio C Hamano 2016-10-25 8:51 ` Pranit Bauva 1 sibling, 1 reply; 6+ messages in thread From: Stefan Beller @ 2016-10-24 18:23 UTC (permalink / raw) To: Yash Jain; +Cc: git This is a Github issue, so ask Github support. Or read up on .mailmap files. On Mon, Oct 24, 2016 at 7:28 AM, Yash Jain <yashjain.lnm@gmail.com> wrote: > Hello, > I have two accounts on github("yj291197" and "yaki29"). > Both the accounts have different gmail IDs("yj291197@gmail.com" and > "yashjain.lnm@gmail.com" respectively) but same passwords. > I used to use git for "yj291197" account and a few days earlier I made > this new account and used git commit to commit on "yaki29" but it > appeared as "yj291197" committed on "yaki29's" repo. > Then I pulled a request of that commit then it appeared "yaki29" > pulled a request with a commit of "yj291197". > > > > And during this whole session I was signed in as "yaki29" on github.com . > > > Please reply .... ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Reporting Bug in Git Version Control System 2016-10-24 18:23 ` Stefan Beller @ 2016-10-24 18:32 ` Junio C Hamano 2016-10-24 21:14 ` Junio C Hamano 0 siblings, 1 reply; 6+ messages in thread From: Junio C Hamano @ 2016-10-24 18:32 UTC (permalink / raw) To: Stefan Beller; +Cc: Yash Jain, git Stefan Beller <sbeller@google.com> writes: > On Mon, Oct 24, 2016 at 7:28 AM, Yash Jain <yashjain.lnm@gmail.com> wrote: >> Hello, >> I have two accounts on github("yj291197" and "yaki29"). >> Both the accounts have different gmail IDs("yj291197@gmail.com" and >> "yashjain.lnm@gmail.com" respectively) but same passwords. >> I used to use git for "yj291197" account and a few days earlier I made >> this new account and used git commit to commit on "yaki29" but it >> appeared as "yj291197" committed on "yaki29's" repo. >> Then I pulled a request of that commit then it appeared "yaki29" >> pulled a request with a commit of "yj291197". >> >> And during this whole session I was signed in as "yaki29" on github.com . >> > > This is a Github issue, so ask Github support. > > Or read up on .mailmap files. I am (obviously) not a GitHub support, but I think the confusion is coming from not understanding who the committer and the author of a commit are and where they are coming from. They are both recorded locally, taken from user.name and user.email configuration variables when the commits are made. "git push" to propagate them to GitHub will NOT change these values of a commit, once a commit is created. The story described looks quite consistent if the user has yj291197@gmail.com configured as user.email and kept making commits in the local repository, and pushed them to either yj291197 or yaki29 accounts at GitHub, without ever changing the local configuration to use the other e-mail address. All commits would record the user and e-mail address yj291197, and the only one that may be attributed to the new one yaki29 would be the automerge created at GitHub when a pull request is responded on-site without first fetching and making a merge locally. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Reporting Bug in Git Version Control System 2016-10-24 18:32 ` Junio C Hamano @ 2016-10-24 21:14 ` Junio C Hamano 0 siblings, 0 replies; 6+ messages in thread From: Junio C Hamano @ 2016-10-24 21:14 UTC (permalink / raw) To: Stefan Beller; +Cc: Yash Jain, git Junio C Hamano <gitster@pobox.com> writes: > Stefan Beller <sbeller@google.com> writes: > >> On Mon, Oct 24, 2016 at 7:28 AM, Yash Jain <yashjain.lnm@gmail.com> wrote: >>> Hello, >>> I have two accounts on github("yj291197" and "yaki29"). >>> Both the accounts have different gmail IDs("yj291197@gmail.com" and >>> "yashjain.lnm@gmail.com" respectively) but same passwords. >>> I used to use git for "yj291197" account and a few days earlier I made >>> this new account and used git commit to commit on "yaki29" but it >>> appeared as "yj291197" committed on "yaki29's" repo. >>> Then I pulled a request of that commit then it appeared "yaki29" >>> pulled a request with a commit of "yj291197". >>> >>> And during this whole session I was signed in as "yaki29" on github.com . >>> >> >> This is a Github issue, so ask Github support. >> >> Or read up on .mailmap files. > > I am (obviously) not a GitHub support, but I think the confusion is > coming from not understanding who the committer and the author of a > commit are and where they are coming from. They are both recorded > locally, taken from user.name and user.email configuration variables > when the commits are made. "git push" to propagate them to GitHub > will NOT change these values of a commit, once a commit is created. > > The story described looks quite consistent if the user has > yj291197@gmail.com configured as user.email and kept making commits > in the local repository, and pushed them to either yj291197 or yaki29 > accounts at GitHub, without ever changing the local configuration to > use the other e-mail address. All commits would record the user and > e-mail address yj291197, and the only one that may be attributed to > the new one yaki29 would be the automerge created at GitHub when a > pull request is responded on-site without first fetching and making > a merge locally. IOW, this sounds like Pebkac to me. There is no a thing that needs fixing in Git, and I do not immediately see there is anything GitHub needs to fix, either. The user may need fixing, though ;-). ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Reporting Bug in Git Version Control System 2016-10-24 14:28 Reporting Bug in Git Version Control System Yash Jain 2016-10-24 18:23 ` Stefan Beller @ 2016-10-25 8:51 ` Pranit Bauva 2016-10-31 16:09 ` Jakub Narębski 1 sibling, 1 reply; 6+ messages in thread From: Pranit Bauva @ 2016-10-25 8:51 UTC (permalink / raw) To: Yash Jain; +Cc: Git List Hey Yash, Junio has explained the problem very well. Since you seem to be a beginner (guessing purely by your email) I will tell you how to fix it. Remember when you would have first installed git, you would have done something like `git config --global user.name <what ever name>` and `git config --global user.email <what ever email>`, it gets permanently stored in the git configuration file (~/.gitconfig). Now all the commits in git are made with this name and email. If you want to change this, again run the above commands with your new name and email. After that commits will be done with a different name and email. Hope this helps! :) Regards, Pranit Bauva ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Reporting Bug in Git Version Control System 2016-10-25 8:51 ` Pranit Bauva @ 2016-10-31 16:09 ` Jakub Narębski 0 siblings, 0 replies; 6+ messages in thread From: Jakub Narębski @ 2016-10-31 16:09 UTC (permalink / raw) To: Pranit Bauva, Yash Jain; +Cc: Git List W dniu 25.10.2016 o 10:51, Pranit Bauva pisze: > Hey Yash, > > Junio has explained the problem very well. Since you seem to be a > beginner (guessing purely by your email) I will tell you how to fix > it. > > Remember when you would have first installed git, you would have done > something like `git config --global user.name <what ever name>` and > `git config --global user.email <what ever email>`, it gets > permanently stored in the git configuration file (~/.gitconfig). Now > all the commits in git are made with this name and email. If you want > to change this, again run the above commands with your new name and > email. After that commits will be done with a different name and > email. Hope this helps! :) First, per user Git configuration doesn't necessarily go into ~/.gitconfig; it could be in ~/.config/git/config Second, you can configure user.email and user.name with `git config` or `git config --local`. The information would go into .git/config for specific repository. This might be a better solution if you want different settings for different repositories. -- Jakub Narębski ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-10-31 16:09 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-10-24 14:28 Reporting Bug in Git Version Control System Yash Jain 2016-10-24 18:23 ` Stefan Beller 2016-10-24 18:32 ` Junio C Hamano 2016-10-24 21:14 ` Junio C Hamano 2016-10-25 8:51 ` Pranit Bauva 2016-10-31 16:09 ` Jakub Narębski
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.