From b0e279220524c7ba2f42b86128e6e6fe56a11058 Mon Sep 17 00:00:00 2001 From: Daniel Saunders <10623666+funkydan2@users.noreply.github.com> Date: Mon, 29 Oct 2018 08:17:14 +1000 Subject: [PATCH] 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. --- content/en/hosting-and-deployment/hosting-on-netlify.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/en/hosting-and-deployment/hosting-on-netlify.md b/content/en/hosting-and-deployment/hosting-on-netlify.md index 01ca42f4f..3fb4ee6cd 100644 --- a/content/en/hosting-and-deployment/hosting-on-netlify.md +++ b/content/en/hosting-and-deployment/hosting-on-netlify.md @@ -128,6 +128,12 @@ You can checkout a specific version as follows: git checkout tags/ ``` +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: