What are refs/heads, refs/tags and refs/remotes?
BeginnerConceptGit internals: objects, refs and the index
Answer
They are namespaces under .git/refs. refs/heads/* are your local branches, refs/tags/* are tags, and refs/remotes/<remote>/* are remote-tracking branches that record where the remote's branches were at last fetch. You never commit onto a remote-tracking ref directly; only fetch updates it.
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