![]() If you have received this message in error, please notify the sender immediately by e-mail and delete this email message from your computer. 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. > This email message may contain legally privileged and/or confidential information. > 4, Do I have to edit the file 'COMMIT_EDITMSG'? > 3, Why do I need to reset the commit information? > 2, Is it correct that I have changed my user.name and user.email to above values? ![]() > 1, Why did I receive this message after a did 'git commit' the second time? > The file 'COMMIT_EDITMSG' can be found in my 'CRAN/GIT/xps/.git' directory. > # Your branch is up-to-date with 'origin/master'. > # with '#' will be ignored, and an empty message aborts the commit. > # Please enter the commit message for your changes. > and got the following text file, 'COMMIT_EDITMSG': > $ git config -global user.email cstrato at aon.at> Now the file '~/.gitconfig' does contain the corrected name and email. > $ git config -global user.name "cstrato" > Searching for an answer I found the following link: > 3 files changed, 62 insertions(+), 58 deletions(-) I tried change config path with: git config -global core. > After doing this, you may fix the identity used for this commit with: Commits done through VS Code or by command git commit -m 'Initial commit' works fine. > following command and follow the instructions in your editor to edit > You can suppress this message by setting them explicitly. > Your name and email address were configured automatically based > However, the next day when I tried once again to run 'git commit' > $ git commit -m "update for configure.in" > I’m not sure why you are trying to add " rabbitus at lumimacs-iMac.local” as your email and username. > Your email and username, need to be the same as your Github ID. I must admit that I was astonished since I did not expect this (and Iĭo I have to edit the file 'COMMIT_EDITMSG'? # email = rabbitus at lumimacs-iMac.local # Please adapt and uncomment the following lines: # This is Git's per-user configuration file. Your name and email address were configured automatically based This was done automatically when I called 'git commit'. I did NOT add " rabbitus at lumimacs-iMac.local” as my email. This is exactly the problem which I do not understand. ![]() Next message (by thread): EXTERNAL: Unexpected message when using 'git commit'.Previous message (by thread): EXTERNAL: Unexpected message when using 'git commit'.EXTERNAL: Unexpected message when using 'git commit' cstrato cstrato at aon.at So I tried again for a fresh test repository : git rebase -r -root -committer-date-is-author-date \īut it changed nothing in apparence, I got the same problem : the timestamp = now even if the commit was done earlier.EXTERNAL: Unexpected message when using 'git commit' Git rebase without changing commit timestamps I found something about git and timestamps : But actually, my commit has been done earlier. It works, but when I push it onto Github, my commit is published with timestamp = now. I've done that for a repository, to change all the commits from the first one : git rebase -r -root \ exec 'git commit -amend -no-edit -reset-author' The highest scored answer propose that : git rebase -r \ I've seen this question : How do I change the author and committer name/email for multiple commits? I didn't want to destroy my important repositories.īut I would like to change all my commits to using my new email, to be able to remove my old email from Github and be no longer associated with. Note that for the following explanations, I'm using a repository created for the test. In GitHub, I now have and So, with whatever email I use to commit and push on GitHub, these commits are recognised as mine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |