Created By Ashley Valdez & Vibha Raju

<aside> 💖 Hello there!

Welcome to the Git & GitHub Tutorial! Here, you’ll learn how to use Git and GitHub for version control. We understand how learning Git/GitHub can be hard to wrap your head around at first 😵‍💫, but we hope that the examples and visuals we provided make the learning a little easier!

</aside>

<aside> 📽️

If you’re more of visual learner and don’t like reading, I made a Git & GitHub Tutorial a while back that I also highly recommend you watch! :)

CS Tutoring Git & GitHub Tutorial

Git & GitHub Setup

</aside>

Table Of Contents


Overview **What Is Git? What Is GitHub? Setting Things Up Cloning A Repository Making & Viewing Changes To Files Adding Files With Changes Committing Your Changes Pushing Your Changes To GitHub Branching Pulling Best Practices Additional Information**

Overview


What Is Git?

Git is a version control system that maintains versions of your code. You can think of git as a version history just like in Google Docs! Git keeps track of your code through commits, “snapshots” of your code at specific points in time.

Git & GitHub Tutorial.gif

What Is GitHub?

GitHub is a website where you can create repositories to store commits of your code. Repositories, or repo for short, is just another word for folders. Just like the folders on your computer! GitHub allows you to store your code history online and back up your files in case you lose them locally. Just like how you would store snapshots in a photo album and not just on a camera.

Setting Things Up


<aside> 💡 Before we jump into getting started with Git and GitHub, let’s set things up!

</aside>

  1. Create a GitHub Account Here.

  2. Check if Git is installed on your computer. You can check by opening your computer’s terminal and running the command:

    git version
    

    After running this command, you should see a version number.

    Screenshot 2022-12-20 at 9.29.54 PM.png