Git has plenty of different ways to let you discard your local, uncommitted changes depending on the status of files in your project. This guide looks at some of the most common use cases, including discarding changes to staged, unstaged, and untracked files.
How to discard and undo local, uncommitted