Dear Turaga,

Thank you for your reply.

This is exactly the problem which I do not understand.

I did NOT add  "rabbitus@lumimacs-iMac.local” as my email.

This was done automatically when I called 'git commit'.

The message says:
Your name and email address were configured automatically based
on your username and hostname.


I did get the following message:
$ git config --global --edit
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
#       name = rabbitus
#       email = rabbitus@lumimacs-iMac.local


I must admit that I was astonished since I did not expect this (and I did not want this!)

So I changed it to:
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
       name = cstrato
       email = cstr...@aon.at


My other question was:

Do I have to edit the file 'COMMIT_EDITMSG'?


Best regards,
Christian



On 10/16/17 22:09, Turaga, Nitesh wrote:
Hi

Your email and username, need to be the same as your Github ID.

I’m not sure why you are trying to add  "rabbitus@lumimacs-iMac.local” as your 
email and username.

Could you please explain that?


On Oct 16, 2017, at 4:07 PM, cstrato <cstr...@aon.at> wrote:

Dear All,

When I first  did:

$ git commit -m "update for configure.in"

everything seemed to be ok.



However, the next day when I tried once again to run 'git commit'
I got the following message:

$ git commit -m "update for configure.in"
[master 7a9855f] update for configure.in
Committer: rabbitus <rabbitus@lumimacs-iMac.local>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:

    git config --global --edit

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

3 files changed, 62 insertions(+), 58 deletions(-)



Searching for an answer I found the following link:

https://stackoverflow.com/questions/10946893/git-name-and-email-address-configuration

and did:

$ git config --global user.name "cstrato"
$ git config --global user.email cstr...@aon.at

Now the file '~/.gitconfig' does contain the corrected name and email.



Afterwards, I tried:

$ git commit --amend --reset-author

and got the following text file, 'COMMIT_EDITMSG':

update for configure.in

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is up-to-date with 'origin/master'.
#
# Changes to be committed:
#       modified:   DESCRIPTION
#       modified:   NEWS
#       modified:   configure.in
#

The file 'COMMIT_EDITMSG' can be found in my 'CRAN/GIT/xps/.git' directory.



My questions now are:

1, Why did I receive this message after a did 'git commit' the second time?


2, Is it correct that I have changed my user.name and user.email to above 
values?


3, Why do I need to reset the commit information?


4, Do I have to edit the file 'COMMIT_EDITMSG'?



Thank you.
Best regards,
Christian
_._._._._._._._._._._._._._._._._._
C.h.r.i.s.t.i.a.n   S.t.r.a.t.o.w.a
V.i.e.n.n.a           A.u.s.t.r.i.a
e.m.a.i.l:        cstrato at aon.at
_._._._._._._._._._._._._._._._._._

_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel



This email message may contain legally privileged and/or confidential 
information.  If you are not the intended recipient(s), or the employee or 
agent responsible for the delivery of this message to the intended 
recipient(s), you are hereby notified that any disclosure, copying, 
distribution, or use of this email message is prohibited.  If you have received 
this message in error, please notify the sender immediately by e-mail and 
delete this email message from your computer. Thank you.


_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel

Reply via email to