If you want to undo all of your current changes, you can use the git restore command with the '.' parameter (instead of specifying a file path): $ git restore.
In case you are using the Tower Git client, you can discard local changes in a file simply from its contextual menu - or even discard only parts of your changes, while keeping the rest: Discarding All Local Changes
Please be careful because you cannot get these changes back once you've discarded them! This will undo all uncommitted local changes in the specified file. If you want to discard this type of changes, you can use the git restore command: git restore index.html They exist in your Working Copy, but you haven't wrapped them in a commit, yet. Changes that haven't been committed to the local repository are called 'local' changes in Git.