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
More on Git internals: objects, refs and the index
What are the four object types in Git's object database?BeginnerIs Git a snapshot system or a diff system?BeginnerWhat is the SHA-1 (or SHA-256) hash of an object and how is it computed?BeginnerWhere does Git store objects on disk, and what are loose objects versus packfiles?IntermediateWhat exactly is a branch, and what does creating one cost?IntermediateWhat is HEAD?Beginner