For this set-up, you can either use terminal commands or GitHub Desktop (which is a bit more intuitive and beginner friendly). These instructions are written assuming that you’re using the terminal (because in the world of web development, using your terminal is a must!) but the overall ideas remain the same.
Git is a version-control system on your computer. It sounds intimidating at first, but in essence, it is used to maintain different versions of code, so that if you change a file and accidentally mess up, you can revert back to the previous version of the file (similar to See All Changes in Google Docs). You’ll be using git through your computer’s terminal, so some git/terminal commands you may find useful in this class are:
git status
git add [INSERT FILE PATH]
git commit -m [INSERT MESSAGE]
git push
git clone [HTTPS]
ls (Mac) / dir (Windows)
cd
ls, you can see all of the folders that you can cd into. For example, using ls, I can see all of the folders that I can cd into. cd Desktop moves me into my Desktop folder. Now, any files I create in the terminal through this will be in the Desktop.
GitHub is an Internet hosting service that allows the changes you make on your local computer visible on the Internet. When you make local changes on your laptop to a file, you can use Git to push your changes to GitHub. Now, your file lives on the Internet and you can access it through the web!
The way GitHub is structured is that it has repositories (for the purposes of this class, you will have one repository that you clone [more on this in the setup below]). Think of the repository as a folder that tracks all of the contents within it. You can manually create a repository on GitHub and then clone it to your local computer (in setup below), so that you can make edits to files in the repository on your local computer and then send it back up to GitHub.
In this class, we will be making use of GitHub pages, which allows you to host your own website! This website is what the staff will be using to check your homework/labs/projects. Whenever you complete a homework assignment, upload it to GitHub through Git and your homeworks will become accessible via the web.