【拉取】
git pull origin master --allow-unrelated-histories
【提交】
git push
1. 拉取远程仓库中的文件
git pull
2. cd进入项目,查看远程分支
git branch
3. 切换分支 git checkout "本地创建分支名" origin/"远程分支名"
4. 提交所以改动文件到Git管理
git add .
5. 将已被Git管理的文件提交到本地仓库
git conmmit -m "描述"
6. 为了防止发生冲突在push前先git pull 重新拉取下远程的文件
7. 提交文件到远程
git push