Collaborative Version Control - Centralized
Last updated on 2024-06-26 | Edit this page
Overview
Questions
- How can I use version control to collaborate with internal collaborators?
Objectives
- Understand the basics of collaborative version control with git and Github
- Understand the centralized workflow
Exercise: Working as a project collaborator (in pairs):
- PERSON A: Create an issue in the repository
- PERSON B: Clone this repository to your system
- PERSON B: Create a new branch
- PERSON B: Make the changes requested in the issue
- PERSON B: Push the changes to the remote repository on GitHub
- PERSON B: Submit a Pull Request, refer to the issue (e.g. “Closes #1”)
- PERSON A: Review the Pull Request
- PERSON B: Address the comments
- PERSON A: Approve the Pull Request
- PERSON B: Merge the Pull Request
Key Points
- Git and Github are superpowerful, not just for version control, but as tools for collaborative development
- Do code reviews and be constructive in them!
- Use centralized flow for internal collaborations