Git Pull - 一切都是最新的,但事实并非如此 [英] Git Pull - Everything up to date, but it's not
本文介绍了Git Pull - 一切都是最新的,但事实并非如此的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图从一个有大约10个文件的仓库中取出。在我的本地存储库上,我只有一个文件。当我输入
I'm trying to pull from a repository which has about 10 files. On my local repository, I only have one file. When I type
git pull origin master
我回来了一切都是最新的
I get back "Everything up to date"
但是,我仍然缺少存储库中的9个左右文件。任何想法为什么会发生这种情况?
However, I'm still missing those 9 or so files on the repository. Any ideas as to why this might happen?
推荐答案
检查您是否位于右侧分支并检出了相同的修订版正在比较: git checkout HEAD
Check whether you are on the right branch and have checked out the same revision you are comparing to: git checkout HEAD
这篇关于Git Pull - 一切都是最新的,但事实并非如此的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文