Skip to content

Pushing updates to cohort syllabi

Jezreel Go edited this page Feb 20, 2019 · 6 revisions

Updating a cohort's syllabus

Prior to and when a cohort is in session, all updates to a cohort's syllabus should come directly from updates to this main syllabus. This requires some git config setup on your local copy of the syllabus. Here are the steps.

Configuring git

  1. Clone the Learn Syllabus repo onto your machine
  2. cd into the repo
  3. Use the command line to open up .git/config in the text editor of your choice:
    • atom .git/config
    • code .git/config
    • vim .git/config
  4. Add this section to the file under the [branch "master"] group:
[remote "cohort-to-update"]
	url = https://github.com/cohort-org/Syllabus.git
	fetch = +refs/heads/*:refs/remotes/origin/*
  • It should look something like this:
[branch "master"]
	remote = origin
	merge = refs/heads/master
[remote "2019-a"]
	url = https://github.com/learn-academy-2019-alpha/Syllabus.git
	fetch = +refs/heads/*:refs/remotes/origin/*
  1. Save the file

Updating a cohort syllabus on github

With the .git/config file set up on your local copy:

  1. Run git pull origin master to get the up-to-date changes from the main repo into the local syllabus repo
  2. Run git push cohort-to-update to push the changes to the cohort repo on github