2013-10-16 34 views

回答

27

没有必要 - 这是相当安全的事情。 From the documentation

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的一部分。 如果已经更新混帐创建以来回购,这些文件已经改变,他们将不会被更新 - 只有新的文件将被添加。 由于没有这些文件实际上是“积极的”,这应该是完全安全的。

+8

是什么**新添加的模板**是什么意思? –

+1

哈哈!我惊慌,甚至在检查我的回购和提交完好无损前开始搜索:) –