In this activity, you’ll practise how developers collaborate on GitHub when being added as collaborators — just like in a real company!
You’ll learn how to:
- Create a new branch
- Commit and push changes
- Open a Pull Request
- Merge PR into main branch
We’re building a simple “Team Page” together!
Everyone will add their own name to a shared list in the index.html file.
Now, clone the repo to your computer:
git clone https://github.com/Technigo/fall25-github-branches-practice.git
Then move into the project folder:
cd fall25-github-branches-practice
Create a new branch for your changes — never work directly on main!
git checkout -b your-branch-name
Open the index.html file in your code editor and add your name inside the list.
Example:
<ul>
<li>Matilda Brunemalm</li>
<li>Jennie Dalgren</li>
<li>Your Name Here ✨</li>
</ul>
Make sure to push to your branch!
git add .
git commit -m "Added my name to the list"
git push origin your-branch-name
Go to the repo on GitHub.
You’ll see a banner suggesting: “Compare & pull request” – click it.
If not, click on the branch tab and finde your brnach in the list of branches. Click the three dots to the right of your branch row -> New pull request
Add a title and short description for your PR.
Click Create pull request 🎉
💡 You just asked to merge your changes into the main branch! DO NOT merge yet.
Your teacher/team will review and merge your PR into the main branch. Once merged, your name becomes part of the project!
checkout the main branch, do a git pull and see your changes in the main branch.
✅ How to be added as a collaborator (don't forget that confirmation email 💌) ✅ How to create and work on branches safely ✅ How to open a Pull Request and contribute to the project