Mohan Mohan - 3 months ago 30
Git Question

Removing <user> committed with <user> on Github

I have a number of commits on github that look like this:

enter image description here

Is there a way of rebasing so that I can get rid of this and simply have the commit marked as by me?


First I would check that your git is configured with the correct user information. Run git config --list to verify that everything is correct.

You can also try playing with interactive rebasing to edit a commit.

  1. Enter interactive rebase git rebase -i <commit ID>
  2. Change the commit you want to change to edit, save and exit
  3. Recommit with a different author git commit --amend --author="Author Name <>