Reputation: 1655
When I do a Pull Request
on a project on Github
it shows
Here is what I did:
git clone
the project from Github
git commit
the changes, but git
warns that my name and email address were configured automatically, so I rungit config --global --edit
to change the default name and email to the same one as on my Github account (well, I'm not sure if the name is the same, but the email is definitely the same)
git commit --amend --reset-author
git push origin mybranch
Why it shows invalid email address on Github and how can I fix the email address?
Upvotes: 2
Views: 8109
Reputation: 554
Ignore that git is configuring your email and because, is not happening because your are not signed in at the moment that you clone your repository. Or your global configuration is empty
So reconfigure your email and name
git config --global user.name "Your Name"
git config --global user.email [email protected]
Then add a commit message and run
git commit --amend --reset-author
of course push again
Upvotes: 4