git 新建仓库

rm -rf .git
git init
git add .
git commit -m "Initial commit"
git remote add origin <github-uri>
git push -u --force origin master
 
原文地址:https://www.cnblogs.com/zengda/p/8862416.html