git remove untracked files present and push code example Example 1: git remove Untracked files git clean -f Example 2: clear untracked files git git clean -n