git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Definition of "the Git repository"

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 29, 2021, 06:59 UTC
Message-ID
<xmqq4kdhyx4m.fsf@gitster.g>
In-Reply-To
<7dd55e85-38eb-7346-ff10-7124102cd22b@pawsey.org.au>
Kevin Buckley <Kevin.Buckley@pawsey.org.au> writes:
Show 5 quoted lines
> 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.

Well, there is a distinction between "non-bare" and "bare" repository, so it is not exactly _wrong_ per-se to include the working tree portion of a non-bare repository as part of the repository created when you run "git clone", i.e. it is not a crime to say "please run 'git clone' to get a new repository to work in".

Often we do need to single out the things under .git/ in a non-bare repository when explaining certain features of Git, and need to clarify if it is not clear in the context (e.g. "the .git repository proper in the result of such a non-bare 'git clone'").

It is nothing new in inter-human communication.

If there is a use of word "repository" in our documentation where it is not clear if the repository proper or the combination of both working tree and the repository prper is meant, you may want to propose a clarification patch.

Thanks.
Previous: Chris Torek
Message 15 of 15 in “Definition of "the Git repository"”
  1. Kevin BuckleyJun 25, 2021
  2. Ævar Arnfjörð BjarmasonJun 25, 2021
  3. Igor DjordjevicJun 25, 2021
  4. Igor DjordjevicJun 25, 2021
  5. Felipe ContrerasJun 25, 2021
  6. Philip OakleyJun 25, 2021
  7. Kevin BuckleyJun 28, 2021
  8. Felipe ContrerasJun 28, 2021
  9. Kevin BuckleyJun 28, 2021
  10. Felipe ContrerasJun 28, 2021
  11. Kevin BuckleyJun 29, 2021
  12. Felipe ContrerasJun 29, 2021
  13. Philip OakleyJun 28, 2021
  14. Chris TorekJun 28, 2021
  15. Junio C HamanoJun 29, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.