I can\'t do a lot of things with git and I want to remove a commit from my repo, because I uploaded wrong stuff.
I used git revert
bu
For removing a root commit, you simply have to remove all branches (and tags) from which it is reachable.
This can be done with git branch -D branch-name
. (You will have to first check out another branch which does not refer to this root commit, since you can't remove the current branch, I think.)
If you want to retain other commits on this branch and only remove the root, git filter-branch
is better, see the answer from Greg.