CS 3410 Lab 0: Introduction to Git

CS 3410


Why Git?

Git is a version control software, and its primary purpose is to ensure that as you make incremental changes to files, you will always be able to revert to, see, and combine old versions. When combined with a remote repository (in our case Github), it also ensures that you have an online backup of your work. Git is also a very effective way for multiple people to work together: individuals can upload their work to a shared repository. (It certainly beats emailing or messaging versions back and forth!)

More advanced use of git allows features to be developed separately from the "master" branch, and only included when they are ready. This can all be done concurrently and distributed among multiple people.

We will use git in CS 3410 as a way of disseminating assignment files to students and as a common place for project partners to share, store, and backup their work.

Part 1: username, please!

Before we can create a repository for you in this class, we will need you to acvitate your Cornell github accout and tell use your username. If you've never used Cornell's github before and/or your don't know your Cornell github username, please read this page for an explanation of how to activate your account and find/change your username.

Think you know your Cornell github username? You should be able to see your own profile by going to: https://github.coecis.cornell.edu/your_username (You'll have to type your_username after the URL.)

Now go to CMS and fill out the Lab 0 survey.

Part 2: Gitting to know you

If you do not already have Git installed on your computer, install it from here.

There are a variety of good Git tutorials on the web (Codecademy, Github, and Bitbucket, to name a few). This one will provide a very basic intro to the most essential features of Git that you will be using in this course, but you are highly encouraged to delve into more depth, as you will definitely use Git or another version control software quite often as you continue in CS. If you are already familiar with Git, feel free to skim this, but you will be expected to know the basics of using Git.

Git Basics

Once we have everyone's Cornell github usernames, we will create individual repositories for each student inside a Fall 2018 Organization. We'll also create pair repositories for you and your partner for each paired project. In the meantime, however, go to your personal github page located at https://github.coecis.cornell.edu/your_username and create a repository that you can play with for the purposes of this tutorial. (You can delete it when you're done if you like.)