我对 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
了。
有人可以让我知道我做错了什么以及如何简单地获取已签入的最新文件吗?
谢谢!