I try to use the git filter-branch to remove some big files. This was not a good idea because it rewrite the history and create a new branch doubling all commits.
Now I want to redo this. I see in SmartGit (a git graphic interface) that it create a lot of pushable commits. How can I delete it and undo all this commits?
I will have to delete one by one using the SHA ID?
If you didn’t yet push them you can do a
git reset --hard HEAD~Xwhere X is the number of commits.