基本方法

  清除本地文件夹下的git文件,然后在重新初始化新建的git仓库

具体实施

//删除文件夹下的所有 .git 文件

find . -name ".git" | xargs rm -Rf

//初始化仓库

git init

相关文章: