Commit 18cdea06 by Sanjay Krishnan

Using git documentation

Showing with 46 additions and 0 deletions
# Submitting Homework Assignments
This document describes the basic procedure for completing and submitting homework assignments.
## Initial Setup
All of the coding exercises in this class with use Python3 (NOT Python 2!!!). Python 3 is installed on all of the CSIL machines and you can install it on your own computer by downloading it here:
On your personal computer, you probably navigate your hard drive by double clicking on icons. While convenient for simple tasks, this approach is limited. For example, imagine that you want to delete all of the music files over 5 MB that you haven't listened to in over a year. This task is very hard to do with the standard double-click interface but is relatively simple using the terminal. All of the instructions in this class will assume access to a terminal interface whether windows, linux, or macos. It is your responsibility to get familiar with using your available terminal.
There is a great tutorial linked here on accessing the Python interpreter from your command line:
## Git
The purpose of Git is to manage a project, or a set of files, as they change over time. Git stores this information in a data structure called a repository. A git repository contains, among other things, the following: A set of commit objects. A set of references to commit objects, called heads.
Git is installed on all of the CSIL computers, and to install git on your machine follow the instructions here:
Every student in the class has a git repository (a place where you can store completed assignments). This git repository can be accessed from:
[<your cnetid>.git]
The first thing to do is to open your terminal application, and ``clone`` this repository (NOTE skr is ME!!!):
$ git clone cmsc13600-submit
This will create a new folder that is empty titled cmsc13600-submit. There is similarly a course repository where all of the homework materials will stored. Youshould clone this repository as well:
$ git clone cmsc13600-materials
This will create a new folder titled cmsc13600-materials. This folder will contain your homework assignments. Before you start an assingment you should sync your cloned repository with the online one:
$ cd cmsc13600-materials
$ git pull
Then, we will tell you which of the pulled materials to copy over to your repository (cmsc13600-submit). Typically, they will be self-contained in a single folder with an obvious title (like hw0).
Try this out on your own! Copy the folder ``using-git`` to your newly cloned submission repository. Enter that repository from the command line and enter the copied ``using-git`` folder. There should be a single file in the folder called ````. Once you copy over files to your submission repository, you can work on them all you want. Once you are done, you need to add ALL OF THE FILES YOU WISH TO SUBMIT:
$ git add
After adding your files, to submit your code you must run:
$ git commit -m"My submission"
$ git push
We will NOT grade any code that is not added, committed, and pushed to your submission repository. You can confirm your submission by visiting the web interface[]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment