PHP中文网2017-05-02 09:24:04
You can clear the git files in the local folder first, and then re-initialize the new git repository
//删除文件夹下的所有 .git 文件
find . -name ".git" | xargs rm -Rf
Then add, commit and other operations
If the command line operation is really weak or cumbersome, you can use visual tools such as sourceTree to perform git operations, which should be simpler
巴扎黑2017-05-02 09:24:04
Directly clear the .git folder manually (non-violence and non-cooperation), and then init