1

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?

Nathan2055
  • 2,283
  • 9
  • 30
  • 49

1 Answers1

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