我只是git init
在一个已经存在的git repo上运行。
结果是重新初始化现有的Git存储库
我该如何撤消呢?
谢谢!
不需要-做起来很安全。从文档中:
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.
模板是git一部分的文件,例如样本钩子和示例文件。如果自创建存储库以来已更新git并且这些文件已更改,它们将不会更新-将仅添加新文件。由于这些文件实际上都不是“活动的”,因此这应该是完全安全的。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句