我是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在那之前做过。
有人可以让我知道我做错了什么,如何才能简单地获取已签入的最新文件?
谢谢!