How to clean your local branch

git status Get a visual of current changes. red changes are unstaged changes. Green changes are staged changes.

I use the following to clear all changes

git checkout .

git checkout -- .

git clean -f -fd -fx