标签:font sans history ros ping style ons pre 本地
1. 本地新增项目
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://XXX.git 仓库地址
git push -u origin master
git remote add origin https://XXX.git
git push -u origin master
2.遇到问题,fatal: refusing to merge unrelated histories
可以在pull命令后紧接--allow-unrelated-history
选项来解决问题
$git pull origin master --allow-unrelated-histories
标签:font sans history ros ping style ons pre 本地
原文地址:https://www.cnblogs.com/nieliangcai/p/12881166.html