1. cd到需要上传目录
3. 添加到本地仓库:git add .
4. 写更新纪录:git commit -m "更新记录"
5. 链接远程仓库:git remote add origin 远程仓库地址
6. git pull origin master
出现fatal: refusing to merge unrelated histories
使用 git pull origin master --allow-unrelated-histories
7. shift+q后输入q
8. git push origin master
更新执行步骤1.3.4.8即可