Utilizing pre-written classes meant for responsive design.
| Thimble | Local + Github Desktop | Cloud + Github Command Line | |
|---|---|---|---|
| Difficulty | 🔥 | 🔥🔥 | 🔥🔥🔥 |
| Hosting | 😏 | 😁 | 😁 |
| Offline editing* | 😔 | 😁 | 😔 |
| Edit in the cloud* | 😁 | 😔 | 😁 |
| Live preview* | 😁 | 😔 | 😔 |
| File size limit | 😥 | 😁 | 😏 |
| Revert to previous versions of code* | 😔 | 😁 | 😁 |
| Open-sourced code* | 😔 | 😁 | 😁 |
| Fluid collaboration workflow* | 😔 | 😁 | 😁 |
Version Control
Think of it like a "photographer" that takes "snapshots" of your code.
This allows you to track changes, revert to previous code, and more!
Cloud storage + collaboration
Push your changes to the cloud and see the differences visually.
Collaborate by pushing & pulling changes without stepping on each others' toes.
| Concept | Explanation | Photographer analogy | Syntax (command line) |
|---|---|---|---|
| Initialize | Turns a folder into a Git repository | "Hires" the Git photographer | git init |
| Add | Adds certain files/folders to the staging area to be committed | Puts "people" in the "frame" of a photo |
git add . (to add everything)git add filename.html (to add one thing)git add --all (to also include deleted/renamed files)
|
| Commit | Saves the files that were added to the stage | Photographer takes the photo | git commit -m "this what I did since the last commit" (except present tense) |
| Remote | Connect the cloud repository to your local repo | Pick a photo album to send your pictures to | git remote add origin URL |
| Push | Send your local commits to the cloud repository | Send photos to a photo album |
git push -u origin master (the first time)git push (the rest of the times)
|
| Pull | Pull in any changes from your remote to your local repo | Save photos in the album to your local collection | git pull |
| Revert | Undo a commit | Undo that horrible haircut you regret | git revert c2e68ee36cc3b6ecb0249743f1b97fdfd0fc02a9 (this is your unique commit identifier) |
Host your code on Github without any "remix" button.
username.github.io/reponame
index.html, then add it to the end of the URLusername.github.io/reponame/home.html