Skip to content

Instantly share code, notes, and snippets.

@Yogendra0Sharma
Created January 12, 2017 10:52
Show Gist options
  • Select an option

  • Save Yogendra0Sharma/ffd454f18265eeec52812d9dc8bc238b to your computer and use it in GitHub Desktop.

Select an option

Save Yogendra0Sharma/ffd454f18265eeec52812d9dc8bc238b to your computer and use it in GitHub Desktop.
Change the name and email address of old commits to a repository
$ git rebase -i HEAD~15 # change pick to edit of those you want to change
$ git commit --amend --author="tripattern <systems@tripattern.com>"
$ git rebase --continue
$ # Do the above several times until there are no items left to rebase
$ git push -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment