本地项目上传到git代码仓库

本地项目目录下右键 git bash here

github上创建项目

本地项目与git项目关联

git branch --set-upstream-to=origin/https://github.com/MengFangui/wx-h5.git master

git pull

git pull origin master --allow-unrelated-histories

处理冲突

git add .

git commit -m 'init'

git push origin master

原文地址:https://www.cnblogs.com/mengfangui/p/12268335.html