“git init”与“git init”有什么不同?和“git init --bare”?

git init git init --bare 之间有什么不同?我发现很多博客文章需要 - bare 为他们的Git服务器?

What is the different between git init and git init --bare? I found that a lot of blog post requires --bare for their Git server?

From 手册页,它表示:

From the man page, it said:


--bare

创建一个裸仓库。如果未设置GIT_DIR环境,则将其设置为当前工作目录。

Create a bare repository. If GIT_DIR environment is not set, it is set to the current working directory

但它实际上意味着什么?是否需要为Git服务器设置 - bare

But what does it actually mean? Is it required to have --bare for the Git server setup?



 1 条回答