Re: what is the function of .git/branches/?
- Date: Sun, 5 Nov 2017 04:38:08 -0500
- From: Jeff King <peff@xxxxxxxx>
- Subject: Re: what is the function of .git/branches/?
On Sun, Nov 05, 2017 at 11:24:00AM +0200, Robert P. J. Day wrote:
> currently proofing "pro git" book, and an example of a new repo
> doesn't show a .git/branches/ directory, but initializing a new repo
> with current version of 2.13.6 *does* show an initially empty
> directory by that name. however, AFAICT, branches are still tracked
> under .git/refs/heads/, so what's with that branches/ directory?
It's a historical way of storing what's now in the "[remote]" section of
config files. It's covered briefly in "git help repository-layout"
(which is a good starting point for similar questions), and in more
detail in the REMOTES section of fetch/pull/push.