Suppose I'm at revision 50. But, I want to revert back to revision 45, and commit back as the stable version.

How do I do that, in the most simple way?

  1. What if I want to do that with one file?
  2. What if I want to do that with the entire repository?
Edit
Report