Oli*_*ews 33
没有必要 - 这样做很安全.从文档:
Running git init in an existing repository is safe.
It will not overwrite things that are already there.
The primary reason for rerunning git init is to pick up newly added templates.
Run Code Online (Sandbox Code Playgroud)
模板是文件,例如作为git一部分的示例挂钩和示例文件.如果您在创建repo后更新了git并且这些文件已更改,则不会更新它们 - 只会添加新文件.由于这些文件中没有一个实际上是"活动的",因此这应该是完全安全的.
| 归档时间: |
|
| 查看次数: |
5622 次 |
| 最近记录: |