Skip to content

iamrahul8/make-your-first-contribution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Make your first Contribution.!

image

❓ What To Do

  • Add your name with profile link (as per markdown) in the Contributors.md file to make your first pull request 🚀

How to make a Pull Request

  • Open Git Bash Here
  • Create a Git repository
  • Run command
 git init
  • Fork the repository
  • Clone your forked repository of the project
 git clone https://github.com/<your_username>/repository_name.git
  • Navigate to the project directory
  • Add a reference(remote) to the original repository
 git remote add upstream https://github.com/repository_owner/repository_name.git
  • Check the remotes for this repository
  git remote -v
  • Always take a pull from the upstream repository to your main branch to keep it updated
 git pull upstream main
  • Create a new branch (prefer a branch name)
 git checkout -b <YOUR_BRANCH_NAME>
  • Perform your desired changes to the code base

Check your changes

 git status
 git diff

Stage your changes

 git add . <\files_that_you_made_changes>

Commit your changes.

 git commit -m "relavant message"

Push the committed changes in your feature branch to your remote repository

 git push -u origin <your_branch_name>

To create a pull request, click on compare and pull requests

Add an appropriate title and description to your PR explaining your changes.

Click on Create pull request

Congratulations🎉, you have made a PR to the repository. Wait for your submission to be accepted and your PR to be merged by a maintainer.


forthebadge

Show some ❤️ by starring this repository✨