Undoing Git Commits: Revert and Reset Changes
You’ve just committed something. Now what? When you’re working on a project in Git, you may run into situations where you have to revert back to an earlier version of a file or even the entire branch. Learn how to revert commits with Git. In this tutorial, we’ll cover how to revert changes using Git. To revert a single change, you can simply type ‘revert’ followed by the commit number. Let us explain in detail.