Skip to content

Latest commit

 

History

History
63 lines (49 loc) · 4 KB

README.md

File metadata and controls

63 lines (49 loc) · 4 KB

check out the students of this course here!

Homework Number 0: Pull requests

The purpose of this exercise if for you to practice making a pull request. You will have to submit add a simple text file to the right location in a directory structure, and submit your addition as a pull request. If you make no mistake, your submission will be used to build a roster of students for this course.

How to do this homework

  1. You can download a GUI to work with git for this homework. I recommend Github Desktop. You are perfectly fine without any GUI as well (i.e. on the command line)
  2. Fork this repository (click on fork top right of this page; this makes a copy of this repo on your github account [that is, somewhere in the cloud])
  3. Go to your fork (it takes you there anyway), and clone your fork to your computer (click on clone or download)
    1. Copy the shown URL
    2. In your GUI, find out how to clone a new repo. Alteratively, on your command line, do
    git clone git@github.com:your_user_name/Students.git  # insert your user name
    
    this will clone the repo to your present working directory on your computer. Let's assume this is your home directory, or ~.
  4. Make sure you have your github username handy
  5. add a JSON file that describes yourself:
    1. With your editor, navigate to where you cloned this. Example: cd ~.

    2. Navigate to the _data/fall_2021/ directory

    3. Open your text editor, create a file like the one below (you are looking at floswald.json), and save as YOUR_GITHUB_USERNAME.json in that directory _data/spring_2021/. If you save it in another location, this will not work.

      {
        "emoji": "radio",
        "introduction": "BBC6music is my favourite radio station",
        "computing": "dynamic models of housing, location and labor",
        "institution": "SciencesPo"
      }

      You should replace with your own

      • emoji (choose from this list),
      • introduction, which should be something very brief about yourself, and
      • computing, where you should state what kinds of computational problems you are (or think you will be) solving.
      • institution, what your institution is.

      NOTICE: take care to write this file exactly as it is shown above. One missing comma, and this will not work.

    4. save this file in the correct location

  6. Go back to your GUI, or type git status on the command line.
  7. In the GUI, select YOUR_GITHUB_USERNAME.json to be added to the next commit, or type git add YOUR_GITHUB_USERNAME.json on the command line.
  8. write a summary of the change. Like: "added my username". command line git commit -m 'added my username'
  9. push your commit to your remote at github: git push (click push in your gui)
  10. Go to fork on github at https://github.com/YOUR_USER_NAME/Students
  11. Click on pull request. see picture
  12. Click on create pull request (several times).
  13. Done.
  14. Now see if what you did checks out as correct on travis: go back to the original repo at https://github.com/ScPo-CompEcon/Students
  15. Click on the (green?) badge next to the title in the readme. Find your build in the list of pull requests. see if it completes without error.
  16. If not: fix the error!
  17. You will be able to push corrections onto the same pull request, by just pushing further commits to the branch you pushed to before. Each new push will trigger another build on travis.

Teachers: see the meta file for usage instructions.

License

Please observe that this repo is part of the Sciences Po CompEcon Organisation and therefore subject to the license detailed at the bottom of The Syllabus repo.