用户无法 git submodule update,但他们可以独立地从所有子模块中提取
我有一个新的团队成员,在尝试执行初始 git 子模块更新时遇到权限错误:
[mrTeamMember@desktop application]$ git submodule update
Initialized empty Git repository in /home/mrTeamMember/work/application/subMod/.git/
[email protected]'s password:
Permission denied, please try again.
但是,如果他们只是直接从子模块的存储库中 git pull
,他们没有得到任何错误!
怎么会这样呢?
什么可能导致这个问题?
I have a new team member who gets a Permission Error when trying to perform their initial git submodule update
:
[mrTeamMember@desktop application]$ git submodule update
Initialized empty Git repository in /home/mrTeamMember/work/application/subMod/.git/
[email protected]'s password:
Permission denied, please try again.
If, however, they simply git pull
from the submodules' repositories directly, they get no error!
How can this be?
What could be causing this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查最近的历史记录,因为 .gitmodules 文件中的 url 可能已更改。鉴于您没有执行 git submodule init ,子模块存储库仍然包含工作 url。
Check recent history as the url in the .gitmodules file has probably changed. Given that you did not do a
git submodule init
the submodule repo still contains a working url.