Skip to content

Instantly share code, notes, and snippets.

View aditya2337's full-sized avatar
🎯
Focusing

Aditya aditya2337

🎯
Focusing
View GitHub Profile
@carlosmcevilly
carlosmcevilly / gist:2221249
Created March 27, 2012 22:55
fix git commit with wrong email address in git config, before pushing
If:
- you add and commit with the wrong email address in git, and
- your remote has a hook set up to prevent you from pushing with the bad address
Then you need to amend the author of your commit before push can succeed:
1. fix your email address in git config:
$ git config user.name "Your Name"