Where is git submodule update in SourceTree?

后端 未结 4 1634
无人共我
无人共我 2021-02-03 21:07

How can I update git sub modules in SourceTree?

4条回答
  •  猫巷女王i
    2021-02-03 21:13

    Here is the windows version:

    enter image description here

    This command assumes the location of your sh.exe - depending on how you setup SourceTree it could be somewhere else.

    /c %LOCALAPPDATA%\Atlassian\SourceTree\git_local\bin\sh.exe --login -i -c "git submodule update"""
    

    Not sure whether it is a bug - but in the version of Sourcetree I am using (v1.6.14.0) I found that having the extra pair of quotations "" on the end was required - otherwise an extra quotation exists and the unbalanced statement then causes sh to bark:

    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.
    

提交回复
热议问题