[Disclaimer: This repository does not count for hacktoberfest23 contributions]
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 Pull-Request-Pioneer
- 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
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.
- Click Create Pull request
Congratulations you have successfully contributed to this repository!