EnyoJS on Cloud9
I've been playing around with the Cloud9 IDE a bit recently to do some remote development. It's come a long way from when I first used it and is quite functional. A great addition is an interactive command line with a git client. So I thought, "It'd be nice to get the EnyoJS bootplate up and running here." Following the general instructions from the wiki, I put together a set of commands that gets everything set up.
TL; DR
Pull in bootplate, update the submodules, and "disconnect" the master branch from the bootplate repo.
git clone https://github.com/enyojs/bootplate.git; rm -rf .git; shopt -s dotglob; mv bootplate/* .; git remote rename origin bootplate; git submodule update --init; printf "\n.c9*" >> .gitignore; git add .gitignore; git config --unset branch.master.remote; git config --unset branch.master.merge;
Assuming your pushing this to a new git repo (on Github or Bitbucket for example), add the remote repo and set the master branch to track it.
git remote add origin
git fetch origin; git branch --set-upstream master origin/master
Here's the first command broken up for readability:
# clone the bootplate repo
git clone https://github.com/enyojs/bootplate.git
# remove the existing git config (it'll be overwritten by bootplate)
rm -rf .git
# move the bootplate contents to the root folder (including the .git directory)
shopt -s dotglob
mv bootplate/* .
# rename the origin branch so your repo can be origin
git remote rename origin bootplate
# update the submodules
git submodule update --init
# add .c9* to .gitignore so the cloud9 revision tracker isn't added to git
printf "\n.c9*" >> .gitignore
git add .gitignore
# make master not track the remote bootplate repo
git config --unset branch.master.remote
git config --unset branch.master.merge