Pushing updates to cohort syllabi - LEARNAcademy/syllabus GitHub Wiki
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
- Clone the Learn Syllabus repo onto your machine
cd
into the repo- 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
- 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/*
- Save the file
Updating a cohort syllabus on github
With the .git/config
file set up on your local copy:
- Run
git pull origin master
to get the up-to-date changes from the main repo into the local syllabus repo - Run
git push cohort-to-update
to push the changes to the cohort repo on github