5 ms·
> git init --help > OPTIONS > --bare > Create a bare repository. If GIT_DIR environment is not set, it is set to the current working directory.
by whydoineedthis 6y ago
> git init --help
> OPTIONS
> --bare
> Create a bare repository. If GIT_DIR environment is not set, it is set to the current working directory.
I'm confused on what you find confusing here?
- eknkc 6y ago> git init --help > OPTIONS > --tiramisu > Create a tiramisu repository. If GIT_DIR environment is not set, it is set to the current working directory. Ok, so can you tell me what is a tiramisu repository?
- edgyquant 6y agoIf the directory containing the git objects is not set, it is set to use the directory you normally find a working tree in. This is pretty straightforward once you know the basics of git, and I can’t imagine anyone would be creating a repo holding only the objects (a remote only repo you simply pull/push to/from) until they know the basics of git.
- whydoineedthis 6y agoAre you saying you don't know what the word "bare" means? Is that the confusion? Googling for the definition I find "Bare: without addition; basic and simple." And yes, I can. A tiramisu repository is a fictional repository that is not at all mentioned the very helpful help section of git init. While completely fabricated, the tiramisu repository is one of the best tasting repositories git can produce.
- eknkc 6y agoThis is the exact point the parent post makes. You have to google what the hell is a bare git repository. It is not intuitive or clearly documented.