本地项目初次推送远端git仓库
- git init
- git add .
- git commit -m "first commit"
- git remote add origin 远程地址
- git push -u origin master
- 远端仓库有文件需要多操作
异常信息:
* branch master -> FETCH_HEAD
fatal: refusing to merge unrelated histories
git pull origin master --allow-unrelated-histories