1、git checkout --orphan source 新建一个没有提交记录的分支
2、$ git add .
3、$ git commit -m “init”
4、$ git remote -v 查看下git库地址
5、$ git remote remove origin 删除原有的git库
6、$ git remote add origin git地址
7、$ git push origin source
1、git checkout --orphan source 新建一个没有提交记录的分支
2、$ git add .
3、$ git commit -m “init”
4、$ git remote -v 查看下git库地址
5、$ git remote remove origin 删除原有的git库
6、$ git remote add origin git地址
7、$ git push origin source