Skip to content

GitHub Tutorial

-9 edited this page Oct 15, 2024 · 1 revision

GitHub

Goal: Create a repository for our assignments.

  • For weeks 1-5, create one repository with separate folders for each week.
  • For larger projects (Arduino, p5.js, etc.), create separate repositories.

How to create and clone a repo.

1. Create a new repository

  • Sign into GitHub
  • Click "New repository"
1

2. Fill out your project details.

  • Fill out project information
  • Add a README file
  • Click "Create repository"
2

3. Clone the repository with GitHub desktop.

  • Click "Code"
  • Select "Open with GitHub Desktop"
  • GitHub Desktop app should open automatically
    • If not, manually copy and paste the URL
3 4

4. Move your project files to your cloned folder.

  • Locate your cloned folder
  • Move your project files into this folder
  • Observe changes in GitHub Desktop
5

5. Add a 'commit' message

  • Write a commit message describing your changes
  • Examples:
    • "Added initial project files"
    • "Updated code to load images"
    • "Updated README"
6

6. Click push to GitHub

  • Click "Push origin" to upload your changes
7

Tips

  • Commit frequently with clear, descriptive messages
  • You can create multiple 'local' commits before pushing to GitHub when you are ready.
  • Use the README for project documentation
  • You can begin to explore GitHub pages to host your projects online: https://docs.github.com/en/pages/quickstart