忽略仅可通过VPN访问的git子模块

忽略仅可通过VPN访问的git子模块,git,git-submodules,Git,Git Submodules,我在git版本控制下工作的项目不是我的项目,但我有权访问它。因此,我可以更改.gitmodules文件的修订控制内容,但有可能将更改提交到git存储库 它在.gitmodules文件中列出了两个git子模块,其中一个只能通过VPN访问,另一个可以通过公共Internet访问 在初始拉入后更新子模块时,我将无法访问VPN网络: git submodule update 拉动将失败: $ git submodule update Cloning into subproject... ssh: co

我在git版本控制下工作的项目不是我的项目,但我有权访问它。因此,我可以更改.gitmodules文件的修订控制内容,但有可能将更改提交到git存储库

它在.gitmodules文件中列出了两个git子模块,其中一个只能通过VPN访问,另一个可以通过公共Internet访问

在初始拉入后更新子模块时,我将无法访问VPN网络:

git submodule update
拉动将失败:

$ git submodule update
Cloning into subproject...
ssh: connect to host blah.example.com port 22: Connection refused
fatal: The remote end hung up unexpectedly
Clone of 'git@blah.exampl.ecom:project/subproject.git' into submodule path 'subproject' failed
之后我也不会有访问权限

我不想让修改.gitmodules文件剥离出有问题的子模块,并冒险在以后提交我的文件版本,也不想全局忽略.gitmodules文件

我想做的是如何忽略这个子模块,同时仍然拉下开放Internet上可访问的子模块,完成我的工作,并提交我的更改。在我勾选的约束中,我如何做到这一点