How can I update git sub modules in SourceTree?
相关问题
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
- Upload file > 25 MB on Github
相关文章
- 请教Git如何克隆本地库?
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is there a version control system abstraction for
- ssh: Could not resolve hostname git: Name or servi
- Cannot commit changes with gitextensions
- git: retry if http request failed
Here is the windows version:
This command assumes the location of your
sh.exe
- depending on how you setup SourceTree it could be somewhere else.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 causessh
to bark:Just double-click on the submodule or left-click and open the module
Once in the submodule, the UI is like any git repo , press on pull/fetch to update to the header. And voila.
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,
I couldn't find the answer myself, so I created a custom action. Go to Preferences, Custom Actions, and enter the following info: (This is on a Mac. Your path to the git executable may vary.)
SourceTree enables you to add submodules directly from the UI now. Simply right-click on the sidebar add choose 'Add Submodule' from the list. More info here.