如何在SourceTree中更新git子模块?
发布于 2013-04-04 03:18:05
我自己找不到答案,所以我创建了一个自定义操作。进入偏好设置,自定义操作,并输入以下信息:(这是在Mac上。git可执行文件的路径可能会有所不同。)
发布于 2012-12-10 01:25:37
只需双击子模块或左键单击并打开模块
一旦进入子模块,UI就像任何git代码库一样,按下pull/fetch以更新到头文件。瞧,瞧。
发布于 2015-03-26 03:57:13
以下是windows版本:
此命令假定您的sh.exe
的位置-根据您设置SourceTree的方式,它可能在其他地方。
/c %LOCALAPPDATA%\Atlassian\SourceTree\git_local\bin\sh.exe --login -i -c "git submodule update"""
我不确定这是否是一个错误--但是在我使用的Sourcetree版本(v1.6.14.0)中,我发现需要在末尾有额外的一对引号""
--否则就会有一个额外的引号存在,不平衡的语句会导致sh
叫:
cmd "/c %LOCALAPPDATA%\Atlassian\SourceTree\git_local\bin\sh.exe --login -i -c "git submodule update""
sh: unexpected EOF while looking for matching `"'
sh: syntax error: unexpected end of file
Completed with errors, see above.
https://stackoverflow.com/questions/12899163
复制相似问题