我没有使用Github。我们的机器上有Git设置。
我从大师那里创建了一个分支,叫做实验。然而,当我试图做吉特拉,我得到以下消息。
> git pull
You asked me to pull without telling me which branch you
want to merge with, and 'branch.experiment.merge' in
your configuration file does not tell me either. Please
specify which branch you want to merge on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.
这是git远程显示来源的结果
> git remote show origin
* remote origin
Fetch URL: ssh://git.domain.com/var/git/app.git
Push URL: ssh://git.domain.com/var/git/app.git
HEAD branch: master
Remote branches:
experiment tracked
master tracked
Local branches configured for 'git pull':
master merges with remote master
Local refs configured for 'git push':
experiment pushes to experiment (local out of date)
master pushes to master (up to date)
当我读到上面的消息时,实验被映射到原点/实验。我的本地存储库知道它已经过时了。那为什么我不能做吉特拉?
这就是我创建这个分支的方法
git co -b experiment origin/experimen
最佳答案
拉:
git pull origin experiment
推动:
git push origin experiment
关于git - git pull 不工作,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/2433637/