Skip to content

fykaa/Open-Source-Essentials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Open-Source-Essentials

Your Practical Guide to making Open Source Contributions! Open Source Love

Making Pull Requests

Pull requests are the way we contribute to group projects or open source projects

Step towards your First Pull Request!

  • Make a change! Add your name in the above repository's Contributors.md file in order to make your first pull

Create a folder in your computer

  • Right click to Open Git Bash Here
  • Create a Git repository on GitHub
  • Run following command on gitbash
 git init
  • Fork the repository you created on github
  • 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 as per the main project repository
 git pull upstream main
  • Create a new branch (prefer a branch name that relates to your assigned issue
 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*9

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. Show some ❤️ by starring this repository and do follow me for more updates✨

About

Your Practical Guide to making Open Source Contributions!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published