Skip to content

SankshipthShetty/Pull-Request-Pioneer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PULL REQUEST PIONEER

[Disclaimer: This repository does not count for hacktoberfest23 contributions]

A beginner-friendly repository on how to make a pull request.

anime-computer

FORK THE REPOSITORY

Fork this Repository using the fork button at the top right corner.


FORK
FORK1

SET UP LOCALLY

Once you've forked the repository, follow the below steps to clone the repository:

  1. Copy the below link
git clone https://github.com/YOUR_USERNAME/Hacktoberfest23.git

Replace 'YOUR_USERNAME' with your GitHub username.

  1. Open the GitBash terminal in your code editor and paste the above link

  2. Copy the below command to change the directory.

cd Pull-Request-Pioneer

CREATE A NEW BRANCH

  1. 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

  1. 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!!!


SELECT YOUR PROGRAMMING LANGUAGE AND MOVE TO ITS FOLDER

cd FOLDER_NAME

Replace FOLDER_NAME with the name of the programming languages among the below:

Example: cd C++ / cd PYTHON


LANGUAGES

START CODING!!!

NOTE: YOU CAN CONTRIBUTE IN TWO WAYS:

  1. YOU CAN SELECT ANY PROBLEM FROM CODECHEF/LEETCODE OR ANY OTHER CODING PLATFORMS (IF YOU ARE SELECTING THIS CONTINUE FROM STEP 3).

  2. YOU CAN SELECT ANY PROBLEMS FROM THE GIVEN LIST OF PROBLEMS BELOW (IF YOU ARE SELECTING THIS CONTINUE FROM STEP 1).


  1. Click PROGRAMS/PROBLEM STATMENTS for the program questions/problem statements

  2. 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.

  3. 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.

  4. 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

  1. Code the Program/Problem

  2. After you are done with coding the problem copy and paste the below command to your terminal

git add .
  1. 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!


PUSH YOUR CHANGES

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:

  1. Copy and paste the below code into your GitBash terminal
git push origin USER_NAME

Replace 'USER_NAME' with your GitHub username

CREATE A PULL REQUEST

  1. Go to the forked repository in your GitHub account

  2. Click on Contribute and you must see the green Open Pull Request Button enabled click on it.


OPEN PR
  1. Click Create Pull request

CREATE PR

CONGRATULATIONS!!

Congratulations you have successfully contributed to this repository!

anime-congrats

THANK YOU FOR YOUR CONTRIBUTION!