Discard local changes

Discard unstaged edits in tracked files and delete untracked files and directories

git restore . && git clean -fd

tool
git45 commands
tags
git

More git commands

all 45 git commands