【发布时间】:2013-03-04 11:01:07
【问题描述】:
如果我从 repo A git fetch 到 B,B 中的主分支不会改变 - 只改变 remotes/origin/master,git status 提醒我。
但现在我想做相反的事情 - 将 B 从 A 更新,例如从 A:master 推送到 B:remotes/origin/master。原因是此更新通过 ssh 进行,并且 A 机器具有对 B 机器的公钥认证 - 但反之则不然。
我该怎么做?
【问题讨论】: