I made a mistake when I first committed. I'm on another person's computer and pushed a version with their user.name instead of mine. How can I delete this?
+1
A:
You can just force-push a repository containing the initial commit you want to Github using git push --force
.
Olaf Muller
2010-08-07 17:28:09
A:
There are a lot of duplicate questions related to this. The following is a generic solution for replacing the first commit of your tree. After you perform this step, you can make any other changes using git rebase -i
.
Casey
2010-08-09 23:59:01