We will play a storytelling game (description here) using Git
-
Divide into groups of MAX 3 people.
-
One person in each group
- Create repository on GitHub
- Add file, e.g.
story.txt
with the beginning of the story
Every day John was waking up at 8. AM, taking a shower, having a breakfast and going to work. But today, a strange thing happened. John woke up and when he looked out the window, he saw...
- Add, Commit, and Push your file on github
-
Each person in the group
- Clone repository
- Create a branch
- Switch to that branch
- Open
story.txt
and write 1-2 sentences (Keep it clean 😄) - Push your changes to your branch
- Merge your changes into main and push to the remote
-
The whole group
- Write your next entry and commit it locally before your partners push up their changes
- Pull down the new changes from the remote
- Resolve Merge conflicts
- Rewrite something about your partner's entry
Repeat steps 3-4 until the story is complete or you run out of time, whichever comes first
For more information use Git tutorial on resolving conflicts