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