how to avoid committing untracked files in git code example Example: git only add modified files git add --all