Welcome, fellow developer, to an epic journey into the world of open source contributions! In this exhilarating quest, you will embark on your first pull request and leave your mark upon the codebase. Are you ready to unleash your coding prowess? Let's get started!
- Head out to srajankumar/pullquest
- Look for the "Fork" button, which you'll find in the top-right corner of the repository's page.
- Click the "Fork" button. This will create a copy of the repository under your GitHub account.
- Go to your forked repository on GitHub.
- Click the green "Code" button, and then copy the URL that appears.
- Open your Git Bash terminal or command line.
- Use the
git clone
command to download the repository to your local machine.
git clone https://github.com/YOUR_USERNAME/pullquest.git
Replace YOUR_USERNAME
with your actual GitHub username in the URL.
- In your terminal or command prompt, use the
cd
command to navigate to the newly created repository folder.
cd pullquest
- Open your terminal or command prompt.
- Use the
git branch
command to create a new branch, giving it a meaningful name.
git branch username-profile
Replace username
with your GitHub username.
- Switch to this newly created branch and begin working on it, use the
git checkout
command.
git checkout username-profile
Now, you are in the newly created branch and ready to add your unique profile details to the repository.
- Navigate to the
src/components
directory within your local repository. - Locate and open the
data.json
file. This file contains the profiles of others who have contributed to the project. - Follow the template below and add your own profile details to the
data.json
file.
{
"username": "your_github_username",
"name": "Your Full Name",
"email": "[email protected]",
"quote": "Your Inspirational Quote or Message"
}
Replace the placeholder values (your_github_username
, Your Full Name
, [email protected]
, and Your Inspirational Quote or Message
) with your actual information.
- Save the
data.json
file.
- Stage all your changes by using the following command:
git add .
This prepares all your modified files for the upcoming commit.
- Commit your work with a descriptive message that summarizes your changes:
git commit -m "Embark on an epic adventure: add my profile details"
Now, it's time to push your committed changes to your forked repository on GitHub:
git push origin username-profile
Replace your-username-profile
with the name of the branch where you added your profile details (e.g., your-github-username-profile
).
- Open your web browser and go to your forked repository on GitHub.
- Ensure you have selected the branch where you made your changes (e.g.,
your-username-profile
) from the branch dropdown. - Navigate to the main repository, in this case,
srajankumar/pullquest.
- Click on the "Pull Requests" tab at the top of the repository.
- Click the "New Pull Request" button.
- GitHub will automatically detect the changes you made in your branch compared to the main repository's branch. Ensure that the base branch is set to 'srajan/pullquest' or whichever base branch is appropriate.
- Give your Pull Request a meaningful title and description, explaining the purpose of your changes.
- Finally, click the "Create Pull Request" button to submit your Pull Request.
Congratulations you have successfully contributed to this repository!