我有一个远程的裸仓库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 pull hub master
吗?