2012-08-29 152 views
1

所以我试图把我的一个仓库拿到我的项目中,但是这些文件没有在我的本地机器上更新。git fetch远程没有更新项目?

git fetch TheCore <-- my Core on Github 
returns saying nothing in terminal, just puts me back at prompt 

没有文件在我的机器上更新,仍旧有旧代码。

我AS12项目远程回购:

origin https://github.com/mine/as12.git (fetch) 
origin https://github.com/mine/as12.git (push) 
thecore https://github.com/mine/TheCore.git (fetch) 
thecore https://github.com/mine/TheCore.git (push) 

所以我试图获取TheCore所以它会更新我的新代码的本地项目。不确定为什么抓取不起作用。

回答

1

只取对本地存储库进行更新的参考的作用。它不会自动更新本地分行。要更新本地分行,您需要根据具体情况使用pull,merge或rebase。

更多信息here