Skip to content
Shreyas edited this page Feb 5, 2014 · 1 revision

Your Workflow

Below, I describe your general workflow for working in sync with the course repository and your own github repository.

Here,

Workflow Tasks:

  • Pull latest updates from Course Repo, and update Your Repo
  • Start your HomeWork
  • Submit your HomeWork

Pull latest updates from Course Repo, and update Your Repo

You should:

  1. go to the master branch on your [Local Repo]
  2. pull the latest content from the master branch of Course Repo
  3. push the latest content from the [Local Repo] to Your Repo

To do this follow these commands:

$ cd <Course Repo Folder>
$ git checkout master
$ git pull origin master
$ git pull jimmy master
$ git push origin master

Start your HomeWork

You should:

  1. Sync Your Repo with Course Repo as above
  2. Go to master branch on your [Local Repo]
  3. Create a new branch to work on your homework
    • NOTE: Do Not merge your homework branch with master or any other branch

To do this follow these commands:

# update and sync your repo first as above, then
$ git checkout master

# create and go to the new branch named: hw<HW_INDEX>-<HW_NAME>, like:
$ git checkout -b hw1-intro

Submit your Homework

To submit your homework, click on the Open a Pull Request button, on Your Repo page on Github. Fill in your submission comments and submit it.

  1. Once you have pushed in your changes Your Repo on Github in the homework branch (i.e. hw1-intro), you might see a button like this on your repository page:

Initiate Pull Request

Click on Compare & pull request

  1. Fill out the pull request form, as shown below, and submit it.

Submit Pull Request

Click on Send pull request

... and you're done :)

A quick tip

You can refer to users on github anywhere using @<username> syntax. So you can add @jretz for Jimmy and @seekshreyas for me in your comments which would send us notifications.

Clone this wiki locally