Git Kata 7: Collaboration as Ken
Explore Git collaboration techniques by simulating two contributors pushing commits to a shared repository. Learn cloning, configuring repositories, making commits, pushing changes, and synchronizing updates between local and remote repositories. This hands-on kata enhances your understanding of managing concurrent workflows and coordination in Git.
We'll cover the following...
This kata is all about two contributors pushing commits to a shared repository. Given that there’s only one of you, you’ll have to do a little role-playing. Starting with this kata, you’ll be playing the part of Ken and Carrie Coder.
First, we’ll clone the web-storelist repository as Ken, then again as Carrie. We’ll then switch back and forth between Ken and Carrie’s local repositories, making commits and pushing them to the Gogs server. We’ll also see how to get commits from a remote repository while updating a local repository.
Open two terminals using the plus (+) sign:
Step 1: Clone and configure the repository
In the Ken window below is the command to clone the repository:
Commands
Command / Parameter | Description |
| This changes to the |
| The The first parameter is This is the URL to the remote repository. The second parameter is This is the directory in which to initialize and download the remote. If the directory doesn't exist, it will be created. |
This step uses the git clone command to retrieve a repository from a remote ...