![FORK](https://private-user-images.githubusercontent.com/99337968/271847183-684d4e13-f4d2-4022-b9ad-1d770cfb5aae.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxNTMzNTIsIm5iZiI6MTcyNDE1MzA1MiwicGF0aCI6Ii85OTMzNzk2OC8yNzE4NDcxODMtNjg0ZDRlMTMtZjRkMi00MDIyLWI5YWQtMWQ3NzBjZmI1YWFlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDExMjQxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEwODQ5ZjMxZTE0YjI5ODRiNmMwOTMyZjc0Y2EyNjg2ZWEzMTg0ZGJhNmE4OTAyNzhlYTc4YzExOGFjOGFlOTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.PmPa5xzWkzCe7uKNR8Os9-rNv9emt3brnF8zkb9gV_4)
![FORK1](https://private-user-images.githubusercontent.com/99337968/271847200-8941cf93-c805-4c13-b39c-8031808c8bc1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxNTMzNTIsIm5iZiI6MTcyNDE1MzA1MiwicGF0aCI6Ii85OTMzNzk2OC8yNzE4NDcyMDAtODk0MWNmOTMtYzgwNS00YzEzLWIzOWMtODAzMTgwOGM4YmMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDExMjQxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ4ZmRmZDVlMTVlMmUzZjBmMDk4NTY5NzE0NmFhMDE1NDFmM2JhNmY4N2M0YjY4ZGMyMDM3YmIzMzJjYzI2NGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zv25KREynGRUSsQ-xHy7EQJFpbLLvap7EwcCxtBWHUo)
Once you've forked the repository, follow the below steps to clone the repository:
- Copy the below link
git clone https://github.com/YOUR_USERNAME/Hacktoberfest23.git
Replace 'YOUR_USERNAME' with your GitHub username.
-
Open the GitBash terminal in your code editor and paste the above link
-
Copy the below command to change the directory.
cd Hacktoberfest23
- Copy the below command and paste it into your GitBash terminal of the code editor
git branch USER_NAME
Replace USER_NAME with your GitHub username
- To switch to your newly created branch copy the below command and paste it into your GitBash terminal of the code editor
git checkout USER_NAME
Replace USER_NAME with your GitHub username
Now that you've successfully switched to your new branch it's time to CODE!!!
cd FOLDER_NAME
Replace FOLDER_NAME with the name of the programming languages among the below:
Example: cd C++ / cd PYTHON
![LANGUAGES](https://private-user-images.githubusercontent.com/99337968/271847214-78f34f55-32e8-4b86-a300-03b658d621a6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxNTMzNTIsIm5iZiI6MTcyNDE1MzA1MiwicGF0aCI6Ii85OTMzNzk2OC8yNzE4NDcyMTQtNzhmMzRmNTUtMzJlOC00Yjg2LWEzMDAtMDNiNjU4ZDYyMWE2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDExMjQxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM2MTMzNjQxYTUwOTE3ZTFlNzU0Y2UyNDQ0MTk5MGIzODFlMTg0MTJkMDJkZjZjNDRhNzI3YzM3ZTZkYTgxZWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MAHV2UFirVqNALFlAL0rW4xZkzLe3osGgP_yOpIdNj8)
NOTE: YOU CAN CONTRIBUTE IN TWO WAYS:
-
YOU CAN SELECT ANY PROBLEM FROM CODECHEF/LEETCODE OR ANY OTHER CODING PLATFORMS (IF YOU ARE SELECTING THIS CONTINUE FROM STEP 3).
-
YOU CAN SELECT ANY PROBLEMS FROM THE GIVEN LIST OF PROBLEMS BELOW (IF YOU ARE SELECTING THIS CONTINUE FROM STEP 1).
-
Click PROGRAMS/PROBLEM STATMENTS for the program questions/problem statements
-
Select any problem statement from the list and make sure that the problem statement you have selected has not yet been uploaded to the program folder if it is uploaded select a different one.
-
Create a file with the PROGRAM/PROBLEM NAME same as in the link/same as in the website(if you're solving any coding platform problems) with the appropriate extension(.c for C/.cpp for Cplusplus) and START CODING THE PROBLEM.
-
To create a file copy and paste the below command in terminal.
echo "" > filename.extension
Replace the "filename" with the name of PROGRAM/PROBLEM specified in the list or the coding platform.
Replace the "extension" with specific extension of your programs:
c for C/cpp for C++/py for PYTHON/java for JAVA/js for JAVASCRIPT/cs for C#/go for GO
Example:echo "" > AddTwoNumbers.cpp
-
Code the Program/Problem
-
After you are done with coding the problem copy and paste the below command to your terminal
git add .
- To save the changes to the local repo copy and paste the below command to your terminal
git commit -m "I YOUR_NAME made a contribution!"
Replace YOUR_NAME with your actual name or maybe something cool!
After successfully completing all of the above steps it is time to push your changes/programs to your forked repository To do this follow the below steps:
- Copy and paste the below code into your GitBash terminal
git push origin USER_NAME
Replace 'USER_NAME' with your GitHub username
-
Go to the forked repository in your GitHub account
-
Click on Contribute and you must see the green Open Pull Request Button enabled click on it.
![OPEN PR](https://private-user-images.githubusercontent.com/99337968/271891242-94499f10-7623-49a7-a07b-76110e878540.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxNTMzNTIsIm5iZiI6MTcyNDE1MzA1MiwicGF0aCI6Ii85OTMzNzk2OC8yNzE4OTEyNDItOTQ0OTlmMTAtNzYyMy00OWE3LWEwN2ItNzYxMTBlODc4NTQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDExMjQxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYzYThiMzA5YTIzZDc0NzNhYzY0NjRjMjEzYjI4ZjIwYWQwOTdhNzExNTAyN2NiOTkwMzExYTkxMDg3ODhhOWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.r5utUpFA_sVc-KF1viYg-sFZ7F_GzlSl8IJU92UxPE0)
- Click Create Pull request
![CREATE PR](https://private-user-images.githubusercontent.com/99337968/271891303-36d71401-f789-4bd0-a4d7-63db530819da.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxNTMzNTIsIm5iZiI6MTcyNDE1MzA1MiwicGF0aCI6Ii85OTMzNzk2OC8yNzE4OTEzMDMtMzZkNzE0MDEtZjc4OS00YmQwLWE0ZDctNjNkYjUzMDgxOWRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDExMjQxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA5ODZmZGViYTM2YWEwMDZiODhlYTE3ZWM0NTQ3MTZlNWJmYjFkM2NiZTZhZjk4ZGQ2Y2MwZTQ1ZWVmMTA0YjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.cIvqOxuHHsZnlyEBCW5fyP8VRkVj8wSeuecLjAwa96w)
Congratulations you have successfully contributed to this repository!