在已有git仓库的文件夹里再次使用git init

>git init
Reinitialized existing Git repository in I:/yourfile/

不会对原有仓库产生影响

查阅官方文档:https://git-scm.com/docs/git-init

DESCRIPTION的最后一段

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 (or to move the repository to another place if --separate-git-dir is given).

你可能感兴趣的:(git,git)