Let's Contribute To Open-source
If you have previously never contributed to any open-source software then these steps will help you get started:
- Go to Hacktoberfest official website and sign in there using your GitHub.
- Install git and setup in your computer. Download and install it from here.
- Fork this repository by click the Fork button in the top right of this page or simply click here.
- Once it is forked, clone the repository in your computer. For this, copy the URL in the address bar, and use the following command:
git clone url_you_just_copied
- Open this cloned repository in your preferred code editor. Also, open a terminal in this directory.
- Now type in the following command in the terminal and replace
username
with your GitHub username.
git checkout -b username
- Fill this block with necessary info of yourself.
{
"name": {YOUR_NAME},
"batch": {YOUR_BATCH_COMMENCEMENT_YEAR},
"major": {YOUR_DEPARTMENT},
"githubUsername": {YOUR_GITHUB_USERNAME},
"favoriteLanguage": {YOUR_FAVOURITE_PROGRAMMING_LANGUAGE}
}
-
Now add the above filled block to the array in
profiles.json
file -
Once you have done all this, commit your changes to GitHub. You can do this with the following commands. Make sure you execute them in the precise order one after another in your terminal.
# copy and paste the following in the terminal
git add .
# copy and paste the following in the terminal after you have executed the previous command
git commit -m "hacktoberfest contribution"
# copy and paste the following in the terminal after you have executed the previous command
git push -u origin your_github_username
- Now open the forked repository on your GitHub. You will see a yellow box at the top telling you that some changes are pushed. You will also see a button called
Compare & pull request
. Click on it. - Now add a title, some description! You have opened a pull request in this repository.
You need to open four valid pull requests in order to complete the challenge. If you have performed the above steps, you have already opened one pull request. And you need only three more.
Note: Those repositories who have
hacktoberfest
as a label are considered for Hacktoberfest challenge only.