I'm working with a Git repository in NetBeans, and I accidentally messed up and wrote a commit with the wrong username/email attached to it. I'd like to change this before I push to GitHub. How can I do this?
Asked
Active
Viewed 1,435 times
1
-
@ColonelPanic - I want to know how to change a commit author in NetBeans, which is different from reverting. – Nathan2055 Jun 18 '13 at 04:04
-
1http://stackoverflow.com/questions/750172/how-do-i-change-the-author-of-a-commit-in-git – Colonel Panic Jun 18 '13 at 04:06
1 Answers
0
@Nathan2055 - have a look at GitHub change author info. I believe this cannot be done from within Netbeans itself.

SubOptimal
- 22,518
- 3
- 53
- 69
-
Can I simply delete the commit either in NetBeans or on my hard drive? – Nathan2055 Jun 18 '13 at 14:20
-
You can go with `git reset --soft HEAD^` one step back, just to the point before you commit the changes. see also (http://git-scm.com/docs/git-reset) under "Undo a commit and redo" – SubOptimal Jun 19 '13 at 19:57