git cleanout

Clean a working tree using typical options then checkout

Git alias:

cleanout = !git clean -df && git checkout -- .

Example:

git cleanout