Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Collaborating with Git using GitHub #12

@HChughtai

Description

@HChughtai

In this exercise, you will work in pairs (within small breakout rooms) to explore how version control is used to collaborate with other people.

To do this, you will clone a remote repository from GitHub that is owned by your partner. As the collaborator, you will then create a new file within your local copy of your partner's repository, commit your changes and push back to the remote on GitHub. Your partner will then pull the changes you introduced.

Setup

  • You will need to have created the remote in GitHub for the repository that we have been working on in the workshop
  • Person 1 in your pair starts off as the Collaborator
  • Person 2 in your pair starts off as the Owner

Exercise

1️⃣ Collaborator 2️⃣ Owner
Share your GH username with your partner
Add GH user name from 1️⃣ as collaborator to your my_pipeline repository
Give to person 1️⃣ a link to the invitation
Accept invitation of 2️⃣
Go to your terminal and clone the repository of 2️⃣ with git clone <url> <name2>_pipeline
Add a new file to 2️⃣ repository and push
From your terminal pull the changes produced by 1️⃣
✔️ ✔️
  • Swap roles and repeat
  • Make sure you ask the helper in your room if you have any questions!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions