Glitch Local Development
code for article pfeilbr/glitch-local-development-playground
Develop Glitch apps locally. Based on noise-machines/git-glitched . The default Glitch development experience is to use the browser based editor. This allows you to use your favorite local editor.
Resources
- Possible to code locally and push to glitch with git?
- Code locally, push to glitch via git?
- Changing a remote’s URL
.
Glitch changed the git repo path since this project was first created and it had to be updated
Initial Project Setup
- Get the writable git repo location from the Glitch UI via
Tools | Git Import, Import, Export - Get the URL + User Name. The User Name acts as the username+password. It is a GUID. e.g.
a63dde92-f3db-411b-a4cf-e2834ed707e4 - Clone glitch repo locally
Example Clone (this doesn’t work. username changed)
git clone https://a63dde92-f3db-411b-a4cf-e2834ed707e4@api.glitch.com/git/glitch-local-development-playground

Development (live reload from local changes)
npm run dev
You must have the browser based editor view open for live reload to work.
Pushing Changes to Github
There are two remotes, one for glitch and one for github. The branch named local contains the most recent up to date changes. Run the following to push to github.
git push -u github local
git push -u github master
When viewing on github in browser be sure to change branch to
localto see the latest.