Skip to content

Instantly share code, notes, and snippets.

@mdkrog
Last active August 29, 2015 14:04
Show Gist options
  • Save mdkrog/6d30f9a87712c0fc4ec5 to your computer and use it in GitHub Desktop.
Save mdkrog/6d30f9a87712c0fc4ec5 to your computer and use it in GitHub Desktop.
Squarespace Environments
# make sure we're on master
$ git checkout master
# add a remote ref for the development site
$ git remote add dev-site https://sitename-dev.dev.squarespace.com/template.git
# force push our live site to the dev site
$ git push -f dev-site master
# add a dev tracking branch from the dev site
$ git checkout -b dev-branch dev-site/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment