The same directory as your repository, but which Git isn’t tracking. Untracked files: This is a list of files that Git has found in The commit, and then you create the commit). Remember: committing isĪ two-step process (you git add the files that will be part of Last commit, which means the change we made to README.md is notĬurrently scheduled to be included in any commit. Is “tracking” that file), but we have not run git add since our Note that weĭid use git add previously with README.md (which is why Git Have not been added to a commit (with git add). Knows about and that have been modified since your last commit, but which Notice that there are two types of files listed here:Ĭhanges not staged for commit: This is a list of files that Git Under Changes not staged for commit may refer to a commandĬalled git checkout (instead of git restore). Some point, you will start using git with your own machine.ĭepending on the version of Git you have installed, the message When working on CS machines, you should see the message above. Otherwise, we suggest you simply do this: Have a preferred directory structure, you’re welcome to use it. The nameĪnd location of this directory is not important, so if you already Instead,Ĭreate a directory in your home directory for the Git tutorial. This page will look something like this:ĭon’t run any of the commands shown on that page just yet. Instructions to initialize your repository. Initialized your repository yet, so GitHub will provide you with the Repository through GitHub’s web interface. Once you do this, you will be taken to a page where you can browse your Not change any other setting, and click on the green “Create repository” Then, under “Repository name” enter uchicago-cs-git-tutorial. Of the page, and then on “New Repository”: To do this, log into GitHub, and click on the “+” icon on the top-right To work through this tutorial, you will need to create a repository on You will not need to use a full-featured code editor If you are using a desktopĮnvironment (such as a CSIL machine or a Virtual Desktop), then Ubuntu’s built-in Text Editor If you are using SSH to connect to a CS Linux server,Įditor for this (like Vi, emacs, nano, etc.). Throughout the tutorial, you will have to make some simple edits If you are unfamiliar with how to use a UNIX environment, suchĪs Linux, you should work through the Linux Tutorial first. Please note that this tutorial assumes familiarity with using a UNIXĮnvironment. Tutorial in other UNIX environments, such as the MacOS terminal That said, you should also be able to work through this (follow the link for more details on how to access such an environment). Through this tutorial on a UChicago CS software environment Since you will often have to use Git on the CS department’s LinuxĮnvironment, we strongly suggest you work To a lot of other features (please note that having the Studentĭeveloper Pack is not necessary for your UChicago classes it’s just a nice benefit you Once you create yourĪccount, you may want to get the Student Developer In this tutorial, we will be using GitHub,Ī web-based hosting service for Git repositories, to learn the basics To older versions of a file by going back to your code as it was when This mechanism makes it possible to look at and even revert Your work, representing the work you’ve done since the previousĬheckpoint. You can think of commits as “checkpoints” in When you have made changes to one or moreįiles, you can logically group those changes into a “commit” that getsĪdded to your repository. Git tracks every version of a file orĭirectory using commits. Repository that contains not just files, but also a record of all theĬhanges made to those files. More specifically, Git is a version control system that maintains files in a Git also makes it easier for an instructor (and other You can think of Git as a system to conveniently store yourĬode in a remote server, and to keep track of changes to thatĬode. To manage the code you write in that class. In many of your CS classes, you will use a system called Git
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |