-
Notifications
You must be signed in to change notification settings - Fork 149
Pushing updates to cohort syllabi
Jezreel Go edited this page Feb 20, 2019
·
6 revisions
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.
- 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
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