Where is git submodule update in SourceTree?

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

How can I update git sub modules in SourceTree?

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-03 21:29

    The link provided by Isuru does include how to perform update (look for "Change the submodule commit which your repository is tracking")

    In short, on the main repository,

    • choose the submodules dropdown
    • double click the submodule you want to update - you will switch focus to the submodule
    • pull (latest) or checkout (specific commit) the required update
    • go back to the tab for the main repository
    • there will be an uncommitted change (which submodule commit to use) in the main repository
    • commit and push the change

提交回复
热议问题