forked from jblomo/datamining290
-
Notifications
You must be signed in to change notification settings - Fork 8
workflow
Shreyas edited this page Feb 5, 2014
·
1 revision
Below, I describe your general workflow for working in sync with the course repository and your own github repository.
Here,
- Course Repo refers to Prof. Jimmy's course repository at: github.com/jretz/datamining290
- Your Repo refers to your private repository that you have created for checking in your work. So, for me it refers to : github.com/seekshreyas/datamining290T
- [Local Repo] refers to the repository cloned on your local machine where you would be working from whether it is your machine or the ISchool server machine
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:
- go to the master branch on your [Local Repo]
- pull the latest content from the master branch of Course Repo
- 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
You should:
- Sync Your Repo with Course Repo as above
- Go to
masterbranch on your [Local Repo] - Create a new branch to work on your homework
-
NOTE: Do Not merge your homework branch with
masteror any other branch
-
NOTE: Do Not merge your homework branch with
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
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.
- 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:

Click on Compare & pull request
- Fill out the pull request form, as shown below, and submit it.

Click on Send pull request
... and you're done :)
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.