Interview Prep/Git & GitHub/Git internals: objects, refs and the index

What are `.git/info/exclude` and `.git/config` for?

IntermediateConceptGit internals: objects, refs and the index
Answer

info/exclude is a per-clone ignore file that is never committed, handy for editor files or local scratch paths. .git/config holds repo-level settings (remotes, branch tracking, user identity), overriding the global ~/.gitconfig and the system file. Precedence is system, then global, then local, then worktree.

git config --show-origin --list
All Git & GitHub questions Roadmap: Git & GitHub

More on Git internals: objects, refs and the index