Does running git init twice initialize a repository or reinitialize an existing repo?

前端 未结 4 968
傲寒
傲寒 2020-11-27 13:33

What happens to an existing git repository when you issue git init again?

I created a repository with git init. Created a file, add, commi

4条回答
  •  情书的邮戳
    2020-11-27 13:57

    it's mean that you already initialized the git. because you already upload a file on github from this path. you check the path then a folder is created by name of .git. That is why you don't requried again to initialized git. you can go to direct next step

    git add .

    Git folder

提交回复
热议问题