Giter Site home page Giter Site logo

cs1101-template's Introduction

Problem Set 0

This problem set is ungraded and is set up to help you get acquainted with the submission workflow. Follow the steps and email course staff if you have any questions.

Setup

Clone this repository and open the directory. Here, <USERNAME> is your GitHub username.

$ git clone https://github.com/CS1101-Spring2021/pset0-<USERNAME>.git
$ cd pset0-<USERNAME>/

Create a new branch and switch to it

$ git checkout -b submission0

Working on your Solution

There are two commands you will need to work on your submission. To compile, link, and create the executable, use

$ make addition

To delete the obj file and the executable,

$ make clean

Grading

The pset comes with an autograder with a few public test cases to help you with your solution. There will be more hidden test cases that your program will have to pass for full credit.

To set up the grader, run the following command only once.

$ make init_grader

After the autograder has been set up, you can use the following command to check your code with the provided test cases

$ make grade

Snapshots

Work on your solution on this branch. You can check which files were modified with the status command.

$ git status

Every once in a while, commit your work.

Committing is a two-step process.

  • Add specific files to the staging area. You can specify multiple files too.
    $ git add addition.c

    You can also add all the files which were modified (be careful). It's good practice to specify the files you want committed and write targeted commit messages for your changes

    $ git add .
  • Commit your changes

    The -m flag adds a message for your commit. You write your message in double quotes following the flag. For an example of where the message shows up, check this commit 6eaa760.

    $ git commit -m "Add print statement"
Push all your commits to the remote repo.

Use this command only the first time you push. --set-upstream will add a new branch of the same name in the remote repository

$ git push --set-upstream origin submission0

For every subsequent push, use this

$ git push

Gearing for Submission

When you are done with the solution and you have pushed all your commits to the `submission0` branch, merge the submission branch to main.
  • First ensure that you are on the main branch and that there are no differences between the remote copy and your local copy
    $ git checkout main
    
    $ git pull
  • Now, merge your submission branch to main
    $ git merge submission0

Push the new changes in main to the remote repo

$ git push

cs1101-template's People

Contributors

deeprajpandey avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.