Skip to content

Instantly share code, notes, and snippets.

@nbogie
Last active May 16, 2019 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nbogie/6c3224bfc8231c2ee054b05e184f35b0 to your computer and use it in GitHub Desktop.
Save nbogie/6c3224bfc8231c2ee054b05e184f35b0 to your computer and use it in GitHub Desktop.
CYF: Back up a glitch project to git (and then GitHub)

CYF: Back up a glitch project to git (and then GitHub)

These instructions are only needed if, like me, you don't want to have to trust glitch completely with permissions to read AND write your data on github directly.

Step: From your glitch project, click on "tools":

tools

Step: Then click on git,import,export:

git-import-export

Step: Clone the repo to your machine

Then copy the git repo url, and go to a terminal and clone it to your machine.You'll have to substitute real values for THE-REPO-URL and LOCAL-PATH...

git clone THE-REPO-URL LOCAL-PATH

git-clone

Step: Now make a repo on GitHub

Step: Now link the local repo with GitHub repo

Step: Now push the local repo content up to the GitHub repo

Limitations:

It will not store any glitch "assets" in your git repo. E.g. if you have uploaded an image to glitch, that won't be in the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment