- git pull 失败 ,提示:
fatal: refusing to merge unrelated histories
,使用git pull origin master --allow-unrelated-histories
- 添加远程库 ,
git remote add [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=<fetch|push>] <name> <url>
- git push
(根据使用过程持续更新,多谢查看!)
图片来源:https://www.webniraj.com/wp-content/uploads/2017/05/zt_git_cheat_sheet.jpg