git init
?git add .
git commit -m "Initial commit"?
git remote add origin + 你的仓库地址
git pull origin master --allow-unrelated-histories
git push -u origin master?
将已有代码加入GIT
原文:https://www.cnblogs.com/wangshuyi/p/13092249.html