You may not need all the changes to be committed and pushed to the remote repository. There are many cases when you just need to reset the working directory/workspace to get a cleaner space, showing just the last committed changes. You may also want to revert a change from the remote branch if you have pushed a wrong commit. In this section, we are going to discuss how to reset and revert a branch.