Delete first git commit

I made a mistake when I first made a mistake. I am on another person's computer and pushed out a version with her name user.name instead of mine. How can i remove this?

+7
git github
source share
2 answers

There are many repetitive questions related to this. The following is a general solution to replace the first commit of your tree. After completing this step, you can make any other changes using git rebase -i .

Paste commit before committing root in git?

+3
source share

You can just force push the repository containing the initial commit that you want to use Github using git push --force .

+4
source share

All Articles