参考:https://serholiu.com/github-share-code
在安装了git之后。
使用命令
git init 创建仓库
git add . 选择文件
git commit -m '注释' 添加文件进入仓库,"注释"随便写
git remote add origin "xxx" XXX为项目地址
git push -f origin master 上传代码到xxx