Skip to content

Instantly share code, notes, and snippets.

@shiffman
Last active March 30, 2024 05:02
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shiffman/9cd8f3550b7db5047d66d164234612f4 to your computer and use it in GitHub Desktop.
Save shiffman/9cd8f3550b7db5047d66d164234612f4 to your computer and use it in GitHub Desktop.
Guide for pushing p5.js sketch to GitHub

Guide for pushing p5.js sketch folder to a new GitHub repo

If you have never used git before on your computer!

$ git config --global user.name username
$ git config --global user.email email@email.com

Commands once you create a empty repo ("skip this step") on GitHub

$ git init
$ git add .
$ git commit -m "committing my p5.js sketch"
$ git branch -M main
$ git remote add origin https://github.com/username/repo-name.git
$ git git push -u origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment