git command to update submodule to latest

This is how I update my themes. It took a while to find the commands that work, so I think it would be good to have them here for other users.
This commit is contained in:
Daniel Saunders authored and Bjørn Erik Pedersen committed 2018-11-16 09:56:09 +01:00
1 parent ffa9b165ef
commit b0e2792205
1 file changed
+6
@@ -128,6 +128,12 @@ You can checkout a specific version as follows:
git checkout tags/<version-name>
```
You can update a theme to the latest version by executing the following command in the *root* directory of your project:
```
git submodule update --rebase --remote
```
## Next Steps
You now have a live website served over https, distributed through CDN, and configured for continuous deployment. Dig deeper into the Netlify documentation: