Welcome to the repository where you can raise a Pull Request to practice contributing to open-source projects! 🎉 Follow the steps below, or if you prefer, watch this video: Youtube video
Before we begin, ensure you have Git installed on your computer: Download Git
You can verify that Git is installed by running the following command in your terminal :
git --version
- Click the gray
Fork
button at the top right of this page. - This creates a copy of the project in your GitHub account.
- After forking the repository, copy the repository URL.
- Use the command below to clone the repository to your local machine:
Example:
git clone <repository_url> .
git clone https://github.com/Web-Dev-Crew/open-source-practice.git .
- Create a new branch by running:
Example:
git branch <branch_name>
git branch openSourcePractice
- Switch to your new branch:
Example:
git switch <branch_name>
git switch openSourcePractice
- Add your name to the
index.html
file inside a<div>
tag:Example:<div>YourName</div>
<div>MhL5</div>
- Stage your changes:
git add .
- Commit your changes with a message:
git commit -m "Add my name"
- Push your changes to GitHub:
Note: If it's your first time pushing, you might be prompted to enter your email and name, and to log in to GitHub.
git push -u origin <branch_name>
- Open your forked repository on GitHub.
- Click on
Compare & pull request
. - Ensure you are comparing the
Web-Dev-Crew/open-source-practice
main
branch with your forked repository's branch that you made and switched into. - Write a title and description for your pull request.
- Create your pull request.
Congratulations!🎉 You are done. Sit tight and wait for your pull request to be reviewed and merged.