RE: Definition of "the Git repository"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kevin Buckley wrote:
> In the way I think of it
> 
> git init
> 
> initialises a Git repository, however, the only thing that changes
> as a result is that a .git directory has been created, ergo, the
> .git directory is the repository.

That's not necessarily true. Another way to look at it is that the Git
repository lives inside the .git directory, but not everything inside
that directory is necessarily part of the repository.

I do have plenty of stuff that isn't part of the repository inside the
.git directory.

The easiest way to disprove that hypothesis is finding something inside
.git that isn't part of the repository, and that's easily done:

  .git/index

-- 
Felipe Contreras



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux