我有git 1.8.3和一个带有'master'和'develop'分支的repo.
从我当地的"开发"分支,我正在尝试执行以下命令 -
git branch -u origin/develop
我得到一个错误
error: the requested upstream branch 'origin/develop' does not exist
当我检查时,git branch -r
我只看到了origin/master
我正试图找到一种方法让我的系统认识到还有一个origin/develop
并且找不到任何有效的解决方案.
Jan*_*ger 25
develop
已存在于远程存储库中,请使用git fetch
更新"远程跟踪分支"(本地镜像).
.git/config
远程部分中); 默认是fetch = +refs/heads/*:refs/remotes/<name of remote>/*
.在某些情况下,可以将配置设置为仅提取一个分支(使用特定分支名称而不是通配符).更改配置应该是安全的; 这将允许获取所有分支.git push -u origin develop
它会在您推送命令的同时处理您尝试对命令执行的操作.科) 归档时间: |
|
查看次数: |
11263 次 |
最近记录: |