Git Nuke Working Tree Link to heading
“If you want to make all the changes in the worktree go away, this is the way to do it. If there are dirty submodule changes this will stash those changes in the submodule(s)” - LazyGit
This will remove from the working tree any changes not stashed or committed.
git reset --hard && git clean -fd