混帐 – 新用户试图拉和获取一些令人困惑的消息
我对git很新。 我一直主要检查东西到一个存储库,但现在我想从另一个开发人员得到最新的变化。
我试图简单地做一个像git pull命令一样的命令,但它回来了,像这样的消息: 
 There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details git pull <remote> <branch> If you wish to set tracking information for this branch you can do so with: git branch --set-upstream develop origin/<branch> 
 所以然后我没有git pull my_branch_name 
它回来了这个:
 fatal: 'develop' does not appear to be a git repository fatal: The remote end hung up unexpectedly 
 但是之前我已经完成了git checkout my_branch 。 
有人可以让我知道我做错了什么,我怎么才能简单地得到已签入的最新文件?
谢谢!
我想你拉的时候错过了遥控器的名字:
 git pull <remote> my_branch_name 
运行这个命令:
 git remote -v 
并检查你想从中拉出的远程名称是什么
编辑:
如果你是Git的新手,我会推荐你这本书 。 它涵盖了从基础到高级的主题,易于理解和阅读
正如第一个错误信息所示,你需要告诉git何时查看该分支:
在Git 1.8及更高版本中,确保您已经签出开发和运行:
 git branch --set-upstream-to origin/develop 
或更短: –
 git branch -u origin/develop 
在1.8之前的Git中:
 git branch --set-upstream develop origin/develop 
 一旦你完成了,你可以不必指定遥控器或分支就可以git pull 。 
如果远程原点尚未设置,请首先运行:
 git remote add origin url 
试试这个命令:
 git pull origin master git push -u origin master 
我喜欢做的是…
 $ git checkout master $ git pull $ git checkout <remotebranch> $ git rebase master