diff options
author | Mantas <11616378+mistermantas@users.noreply.github.com> | 2018-08-08 12:57:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 12:57:46 +0300 |
commit | ac9aaf8fbf44a79ba087d93c250ac4289befabcb (patch) | |
tree | 4da6df9a0049fbfc0473181c18f7b7babfdbd52f | |
parent | 4c00b3aefe21a920d418c81baaa5ce77ca7ea386 (diff) |
Update README.md
-rw-r--r-- | README.md | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 <your repo link goes here> && 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 |