Reverting files in Git can be confusing because there are multiple ways to accomplish it. Let’s go over some basic commands to help you undo your work effectively.
Reverting files
Cleaning up untracked files
Our first reader submitted tip comes from Dav Glass, and it elaborates on a command used to keep your repository nice and tidy.