How Do I Configure Git to Ignore Some Files Locally? To configure Git to ignore certain files locally (without affecting other collaborators or the repository itself), you can use the .git/info/exclude file or the git update-index command with the --skip-worktree flag.