1、一个仓库连接多个远程地址
Example: git remote add <name> <远程地址>
git remote add poems https://github.com/HC1058503505/WePoems.git
result:
origin https://git.qcloud.com/179_1a00000c538834/WePoemes.git (fetch)
origin https://git.qcloud.com/179_1a00000c538834/WePoemes.git (push)
poems https://github.com/HC10585035050/WePoemes.git (fetch)
poems https://github.com/HC10585035050/WePoemes.git (push)
2、fatal: refusing to merge unrelated histories
主要原因还是在于本地仓库和远程仓库实际上是独立的两个仓库
git pull poems master --allow-unrelated-histories
3、Updates were rejected because a pushed branch tip is behind its remote
1、可能需要拉取远程仓库到本地,是的版本号统一
2、可能需要指定本地分支到推送的远程分支
Example:git push <远程主机名> <本地分支名>:<远程分支名>
git push poems feature/poems:master