Removing <user> with <user> on Github

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

enter image description here

Is there a way to reinstall so that I can get rid of this and just have a commit marked like me?

+4
source share
2 answers

First, I would check that your git is configured with the correct user information. Run git config --listto make sure everything is correct.

You can also try playing with interactive reboot to edit the commit.

  • Enter interactive rebase git rebase -i <commit ID>
  • Change the commit you want to change to edit, save and exit
  • Recommendation with another author git commit --amend --author="Author Name <[email protected]>
+2

.

, :

  • git rebase --root -i, HEAD .
  • edit
  • : git commit --amend --author "Name <email>"
  • : git rebase --continue
  • 4 5,

"Name <email>" , .

.

PS: -, - . . user.email.

+2

Source: https://habr.com/ru/post/1662530/


All Articles