【发布时间】:2016-10-25 21:49:21
【问题描述】:
我正在尝试将我的本地分支“选择”推送到远程分支 origin/tech。 我的头指向远程分支 origin/tech。 我正在使用以下命令
git push -u origin/tech opt
但它因错误而失败
fatal: 'origin/tech' does not appear to be a git repository
fatal: could not read from the remote repository
通过执行 git branch -r 确认远程分支 origin/tech 存在。
【问题讨论】:
-
git branch -r 列出分支。如果它输出
origin/tech,则意味着origin是一个远程,而tech是该远程上的一个分支。
标签: git