【发布时间】:2011-06-18 08:10:23
【问题描述】:
我有一个远程裸存储库hub。我只在master 分支工作。
下面这条错误信息的最后一句让我想知道:我如何找出“当前分支的默认配置远程”?以及如何设置?
[myserver]~/progs $ git remote -v
hub ~/sitehub/progs.git/ (fetch)
hub ~/sitehub/progs.git/ (push)
[myserver]~/progs $ git branch -r
hub/master
[myserver]~/progs $ cat .git/HEAD
ref: refs/heads/master
[myserver]~/progs $ git pull hub
You asked to pull from the remote 'hub', but did not specify
a branch. Because this is not the default configured remote
for your current branch, you must specify a branch on the command line.
【问题讨论】:
标签: git git-push remote-branch