DEV Community

Banesa Guaderrama
Banesa Guaderrama

Posted on • Updated on

Open Source Contributions

alt text

Benefits of Contributing an Open Source Project

Opensource is a great way not just to contribute to open source projects but to practice what you have learn while contributing through another person or organizations’ code or project. Without a doubt open source brings benefits not just to the organizations through contributors’ innovative contributions, but the contributor also benefits by putting his or her name on a project, specially if you are looking to gain some exposure.

Another benefit you will find while contributing to open source is that you can get experience working virtually since you do not know the people involved in the project and you base your contribution in written instructions, also by using your critical thinking while reviewing an unknown code or project to provide a solution.

Gain Programming Experience

The beauty of an open source is that anyone can contribute, and if you do not have experience it will let you gain programming experience. If you are afraid to damage the code, do not worry, there are controls in place to prevent it, any submission needs to be approved. So, while new programmers gain experience without risking a program (or their jobs), experience programmers work in other relevant activities without debugging distractions.

Finding Open Source Projects

You can find open source projects through GitHub, but you can also join open source communities through twitter or looking in the websites of specific companies you would like to contribute.

Steps

  1. On GitHub, navigate to the repository you want to contribute

  2. Under the repository name, click Clone or download.

  3. In the Clone with HTTPs section, click to copy the clone URL for the repository.

  4. Open Git Bash.

  5. Change directories to the location of the fork you cloned in Step 2: Create a local clone of your fork.

    To go to your home directory, type just cd with no other text.
    To list the files and folders in your current directory, type ls.
    To go into one of your listed directories, type cd your_listed_directory.
    To go up one directory, type cd ...

  6. Type git remote -v and press Enter. You'll see the current configured remote repository for your fork.


    git remote -v
    origin  https://github.com/YOUR_USERNAME/YOUR_FORK.git // (fetch)
    origin  https://github.com/YOUR_USERNAME/YOUR_FORK.git // (push)
  1. Type git remote add upstream, and then paste the URL you copied in Step 2 and press Enter. It will look like this:

    git remote add upstream https://github.com/your_repository
  1. To verify the new upstream repository you've specified for your fork, type git remote -vagain. You should see the URL for your fork as origin, and the URL for the original repository as upstream
    git remote -v
    origin    https://github.com/YOUR_USERNAME/YOUR_FORK.git // (fetch)
    origin    https://github.com/YOUR_USERNAME/YOUR_FORK.git // (push)
    upstream  https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git // (fetch)
    upstream  https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git // (push)

Latest comments (1)

Collapse
 
banesag profile image
Banesa Guaderrama

Nice addition to this post. I appreciate you took the time for reading and replying me. I agree with you in the benefits behind of a free software, and about the opportunities it brings to individuals able to access them. Also, I enjoyed reading the link, it provides with a nice programming history!

Thank you very much!