You can adjust the location of the exercises in case you plan to copy/import them to a different place.
This is the default:
centralized_workflow_exercise_url: https://github.com/coderefinery/centralized-workflow-exercise
forking_workflow_exercise_url: https://github.com/coderefinery/forking-workflow-exercise
But you can change these in _config.yml
and this will change the locations in this instructor guide
but also in the lesson episodes.
First verify that these repos exist - never remove these, never use these directly during a course:
In a previous workshop you may have used https://github.com/KTH-dESA/forking-workflow-exercise. If yes, deactivate Travis for this repository.
Then delete the copied exercise repositories from a previous workshop. Make sure to not remove the templates above - you only want to remove their copies:
Now use the GitHub importer to create new copies:
Centralized exercise:
Forking exercise:
Now re-activate Travis CI for https://github.com/KTH-dESA/forking-workflow-exercise before you push changes to it. Sometimes Travis shows an error when activating. In this case, please reload the page and try again.
To test that Travis CI is correctly set up, fork https://github.com/KTH-dESA/forking-workflow-exercise, submit a pull request, and verify that testing is triggered by the pull request, then you can close the pull request again.
Finally give all instructors admin rights to the two newly created exercise repositories and write-protect the
master
branch until we really start pushing to the repository.
The motivation for the above steps:
Add at least one other helper as an admin to the newly copied centralized-workflow-exercise (let the other helpers know who that is), so that someone can give latecomers write access without asking the main presenter.
After inviting participants as collaborators, give them the invite link, otherwise the invitations can be swallowed by spam filters.
Check https://github.com/KTH-dESA/centralized-workflow-exercise:
Compare:
https://github.com/KTH-dESA/centralized-workflow-exercise/network (the copy you have created)
(Here can be a starting anecdote or a starting question.)
(Here list a couple of questions that can be asked to wake participants up.)
If participants run git graph
they might notice origin/HEAD
.
This has been omitted from the figures to not overload them.
This pointer represents the default branch of the remote repository.
Remind participants to not rush ahead but do one step at a time collectively and discuss after each step. The effect is then better.
If some participants already go ahead, they will manage to push changes and the history will be different than what is expected.
git graph
a lot, just like in the git-solo lesson.