how to clean repository git code example Example: git clean fdx //Remove untracked files directories and ignored files git clean -fdx