Undo a Git commit after push using reverse patch?
Use
git revert HEAD
This will create a patch that reverts the last commit and commit that patch as a new commit.
If you want to revert a specific earlier version, use
git revert <revision>
see also: http://schacon.github.com/git/git-revert.html
Sounds like you want to use git-revert.
https://www.kernel.org/pub/software/scm/git/docs/git-revert.html
simply use
for committed file:
git revert <SHA1 ID>
for non-committed file:
git reset --hard HEAD