有一些名为 foo 的 github 存储库,“user1”和“user2”(不是我)都在使用它。我有:
- 分叉
https://github.com/user1/foo
为https://github.com/myself/foo
- 克隆的
https://github.com/myself/foo
- 运行
git remote add user2-repo https://github.com/user2/foo
(它是早期版本的 user1/foo 的一个分支) - 跑了
git merge user2-repo/master
- 合并了吗
- 提交所有更改
- git push'ed 到 github (to
myself/repo
)
myself/foo
但是,如果我查看“网络”图 - 我看不到and之间有任何关系user2/foo
;如果我使用git gui
并可视化所有分支,我看不到从分支头部user2-repo/master
到master
分支的边缘,就像我期望根据这个答案看到的那样。
还有什么我需要做的吗?我看的不是正确的吗?我是否误解了应该发生的事情?