Understanding git init

后端 未结 5 1479
情书的邮戳
情书的邮戳 2021-01-30 14:57

What is git init for exactly? Must I do it once per computer or once per project that uses git? I downloaded my project by git clone and got it working

5条回答
  •  渐次进展
    2021-01-30 15:23

    git init is only for when you create your own new repository from scratch. It turns a directory into an empty git repository.

    When you use git clone to clone an existing repository into a new one, git init is neither necessary nor desired.

提交回复
热议问题