2013-10-16 36 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

哈哈!我驚慌,甚至在檢查我的回購和提交完好無損前開始搜索:) –