git checkout . git clean fdx code example Example: git clean fdx //Remove untracked files directories and ignored files git clean -fdx