【发布时间】:2021-06-11 18:13:25
【问题描述】:
随着最近在Github中master更改为main,看来我需要先推送到master,然后与main合并。当我尝试使用 --remote-upstream 推送到 main 时出现错误:error: src refspec main does not match any。
在带有 OMZ 的 iterm2 上,当我第一次运行 git init 时,我在路径中看到 master。
如何直接push到main而不是master?
【问题讨论】:
标签: git github git-branch git-push git-remote