I\'ve pushed a commit and I want to revert changes introduced by this commit by applying and committing a reversed patch. How do I do it?
Sounds like you want to use git-revert.
https://www.kernel.org/pub/software/scm/git/docs/git-revert.html