From ac9aaf8fbf44a79ba087d93c250ac4289befabcb Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Wed, 8 Aug 2018 12:57:46 +0300 Subject: Update README.md --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 85c2fc7..1d63ae7 100644 --- a/README.md +++ b/README.md @@ -93,13 +93,19 @@ If you would like to commit/make a PR, make sure that `themesDir` is a comment b Assuming the production install instructions were followed, keep cState updated by having an up to date Git submodule in the `themes` folder. containing this repository. Your content will stay separate, as to avoid any conflicts. -Do this from root: +If you already have a Git repository set up with a filled up `themes/cstate` folder, then all you need to do is this: ```bash git submodule foreach git pull origin master ``` -More info about updating on [Stack Overflow](https://stackoverflow.com/a/5828396). You may also run into unexpected behavior with cloning, [see this thread](https://stackoverflow.com/questions/3796927/how-to-git-clone-including-submodules). +If you have previously used Netlfiy CMS or have made other changes without using the command line, the easiest thing to do is just clone it in a new place, change it how you want to, push those changes, and then you can safely remove the Git folder. So, do this: + +```bash +git clone --recursive && git submodule foreach git pull origin master && git push origin master +``` + +More info about submodules on [updating](https://stackoverflow.com/a/5828396) & [cloning](https://stackoverflow.com/questions/3796927/how-to-git-clone-including-submodules). ## FAQ -- cgit v1.2.3-70-g09d2