DEV Community

Discussion on: Why and How to contribute to open source???

Collapse
 
ashklempton profile image
Ash Klempton
  • The way you contribute to someone's else repo is to use something called a fork. You can find the option at the top right corner of the root page of any repo on github.

  • When you fork a repo , you create a copy of that repo for yourself. It is different from cloning though as when you clone a repo, the git remote url is set to that of the original author and you have no permissions to write to them.

  • Once you fork any repo,it will appear on your github dashboard , clone it to your local machine and make whatever changes you want to make. Then commit them and push them to your version of the repo (well that's the only thing you can do anyways)

  • Once you have pushed the changes to your repo , you can start a pull request to the original repo. This will let the authors of the original repo review your commits and if they like them, they can merge them to the original repo. In short,If they accept your pull r request,you will be added to the list of contributors.

I know this is a pretty long process and it's really tough explaining all of this in the comment section. I can write an article on this if you wish so let me know.

Peace.

Collapse
 
hinasoftwareengineer profile image
Hina-softwareEngineer

Thank you so much. Some confusions has been cleared by your comment. Yes, i want that you will write an article on this. Because my some friends also don't know about it. They are also confused in using git hub by git. I will share your article with them.

Thread Thread
 
ashklempton profile image
Ash Klempton

Alright , I shall post an article in a day or two.

Thread Thread
 
hinasoftwareengineer profile image
Hina-softwareEngineer

Thank you.