Skip to content

iwstech3/git-challenge-collaboration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Challenge: Collaboration and Version Control

.image

Welcome to the Git Collaboration Challenge! This project is designed to help you practice collaboration and version control using Git and GitHub. Follow the steps below carefully to complete the challenge. The first participant whose pull request (PR) is reviewed and accepted wins!


Overview

This challenge focuses on:

  1. Forking a GitHub repository.
  2. Creating and managing feature branches.
  3. Adding and committing changes.
  4. Opening a pull request.
  5. Collaborating with teammates to resolve merge conflicts and review code.

Step-by-Step Instructions

Step 1: Fork the Repository

Fork this repository to your GitHub account. This creates a copy of the repository in your account that you can work on without affecting the original repository.

  1. Click the Fork button in the top-right corner of this repository’s GitHub page.
  2. Choose your GitHub account as the destination for the fork.

Step 2: Clone the Repository

Clone your forked repository to your local machine so you can work on it.

  1. Copy the URL of your forked repository from GitHub.
  2. Open a terminal and run the following command:
    git clone https://github.com/your-username/git-challenge-collaboration.git
    
    

Fork and clone the repository

git clone https://github.com/your-username/git-challenge-collaboration.git cd git-challenge-collaboration

Create a feature branch

git checkout -b feature/your-branch-name

Add your introduction file

echo "Hi! My name is [Your Name]. I am a [Your Role]. I am passionate about [Your Passion]." > your-name.txt git add your-name.txt

git commit -m "Add introduction file for [Your Name]"

Push your changes

git push origin feature/your-name

Collaborate to resolve conflicts

git fetch origin

git merge origin/master

git add .

git commit -m "Resolve merge conflicts"

git push origin feature/your-brancg-name

About

Contribute and have fun

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors