将已有代码加入GIT

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​ 

原文地址:https://www.cnblogs.com/wangshuyi/p/13092249.html