After cloning a repository with several branches on the server, I noticed the local .git/refs/remotes/origin
directory only contains a file HEAD
but not the branch files (as I expected).
When I do a git branch -r
or a git branch -a
all remote branches are listed.
When are the branch files unter refs/remotes/origin
created?