繁体   English   中英

如何在git存储库中获取新的子目录?

[英]How to fetch new subdirectories in git repository?

git 存储库 ArduPilot 在 ardupilot/libraries/SITL/examples/ 中有一个新的子目录,新目录是 JSON。 当我克隆存储库时,该目录不存在,并且不在我的本地副本中。 我使用什么命令来更新本地存储库以匹配远程存储库?

这是当地的状态

$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean

但是,我可以在 github 页面中看到新目录。

我必须做“git fetch origin”,而不是“git fetch”或“git pull”。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM