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
2018-10-29 08:17:14 +10:00
committed by Bjørn Erik Pedersen
parent ffa9b165ef
commit b0e2792205
@@ -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: