是git --bare init错?
应该是:
git init --bare
Run Code Online (Sandbox Code Playgroud)
ear*_*arl 19
git --bare init 没有错,它只是表达相同(尽管存在错误)操作的不同方式.
快速查看顶级git(1)联机帮助页将确认,--bare是所有Git命令的全局选项,它会影响存储库目录的发现方式:
--bare
Treat the repository as a bare repository. If GIT_DIR environment
is not set, it is set to the current working directory.
Run Code Online (Sandbox Code Playgroud)
最初,这是使git命令以"裸模式"运行的唯一方法,这就是为什么你会git --bare init在很多旧的文档/教程中找到它们.--bare在1.5.6系列中添加了单独的选项,以改进CLI.
| 归档时间: |
|
| 查看次数: |
6433 次 |
| 最近记录: |