将本地git项目push到码云

参考一 https://www.cnblogs.com/ut2016-progam/p/6066834.html
参考二 https://stackoverflow.com/questions/37937984/git-refusing-to-merge-unrelated-histories
总结下
关键在于pull 和 push 操作
命令1 git remote add origin branchName xxxx.git
命令2 git pull origin branchName --allow-unrelated-histories (关键)
命令3 git push -u origin branchName

你可能感兴趣的:(将本地git项目push到码云)