howto switch back and forth between "src/examples" being a git submodule
key idea: always delete src/examples
prior to any checkout or merge operation!
stop webpack
go into src directory:
cd $SMC_ROOT
check these assumptions
you're on the master branch and in sync with upstream
origin is the name of the remote github repo (otherwise, you might call it upstream? then rename origin below to upstream)
git status
is clean
switch to the examples-update branch
(optional) in case you want to merge with origin/master again
start webpack again
when done and going back to master:
stop webpack
rm -rf examples
git checkout master
← will restore src/examples as a normal directory