Welcome to the Git Collaboration Template! This repository is designed to help students learn how to collaborate using Git and GitHub, both in pairs and individually.
To get started, you can either create a repository using this template. Follow the instructions below based on your chosen workflow.
- Create a Repository from Template: create a new repository using this template.
- Clone the Repository: clone the repository to your local machine or open an instance of Codespaces.
- Create a Branch: create a new branch for your changes.
- Make Changes: edit the code as needed; add and commit your changes.
- Push Changes: push the branch to the remote repository.
- Merge Changes: merge your branch back into the main branch.
For detailed steps, refer to the Individual Workflow Document.
- Create a Repository from Template: one student should create a new repository using this template.
- Fork the Repository: The second student should fork the newly created repository.
- Clone the Repositories: Both students should clone their respective repositories to their local machines or open Codespaces on their version.
- Make Changes: Each student can work on their own features or fixes in their respective environments. Add and commit changes. Use branches if desired, as in the individual workflow.
- Push Changes: After making changes, push them to their remote repositories.
- Open Pull Requests: The student who created the fork can open up a pull request to merge their changes.
For detailed steps, refer to the Collaborative Workflow Document.
To practice your Git skills, complete the following exercises:
git-collaboration-template
├── src
│ ├── main.py
│ ├── utils
│ │ └── helpers.py
│ └── data
│ └── sample_data.txt
├── docs
│ ├── collaborative_workflow.md
│ └── individual_workflow.md
├── exercises
│ ├── exercise1_basic_changes.md
│ ├── exercise2_branching.md
│ └── exercise3_merge_conflicts.md
├── .gitignore
├── .devcontainer
│ └── devcontainer.json
├── requirements.txt
└── README.md
Happy coding and collaborating!