<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Smruti Ranjan Sahoo</title>
    <description>The latest articles on DEV Community by Smruti Ranjan Sahoo (@c99srs).</description>
    <link>https://dev.to/c99srs</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F514699%2F971d7bec-d839-4efc-9fe0-98014af5c1e1.jpeg</url>
      <title>DEV Community: Smruti Ranjan Sahoo</title>
      <link>https://dev.to/c99srs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/c99srs"/>
    <language>en</language>
    <item>
      <title>How to Contribute to Open Source Project</title>
      <dc:creator>Smruti Ranjan Sahoo</dc:creator>
      <pubDate>Sun, 15 Nov 2020 05:01:03 +0000</pubDate>
      <link>https://dev.to/c99srs/how-to-contribute-to-open-source-project-3ojo</link>
      <guid>https://dev.to/c99srs/how-to-contribute-to-open-source-project-3ojo</guid>
      <description>&lt;p&gt;Opensource.com asked readers a few months ago: What’s the biggest barrier to participation in open source? Answers from 56% of poll takers were that they aren’t sure where to start. And, 13% said they are uncomfortable jumping in.&lt;/p&gt;

&lt;p&gt;If you feel the same way, this post is for you.&lt;br&gt;
If you know Github and know its commands but not sure how to check out the project and make some changes, then this post is also for you.&lt;/p&gt;

&lt;h1&gt;
  
  
  What Is Open Source?
&lt;/h1&gt;

&lt;p&gt;Open-source software has a few key characteristics:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It’s free to use&lt;/li&gt;
&lt;li&gt;The source code is accessible&lt;/li&gt;
&lt;li&gt;Developers are free to modify the source code for their 
own purposes, including for commercial use&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This article for beginners makes their first contribution. If you are looking to make your first contribution, follow the steps below.&lt;/p&gt;

&lt;h2&gt;
  
  
  0. Make a GitHub account
&lt;/h2&gt;

&lt;p&gt;Most open-source projects are hosted on GitHub, which is a website for sharing and saving code. Anyone can make a GitHub account for free. Paid accounts are only necessary if you want some of your code to be private.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Choose a project and issue to work on
&lt;/h2&gt;

&lt;p&gt;A set of files for a project is called a Repository, and Issues are where people ask for help fixing things.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Fork the repository
&lt;/h2&gt;

&lt;p&gt;Fork the repository by clicking on the fork button on the top right of the page. This will create a copy of this repository in your account.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Clone the repository
&lt;/h2&gt;

&lt;p&gt;Now clone the forked repository to your machine. Go to your GitHub account, open the forked repository, click on the code button, and then click the copy to clipboard icon.&lt;/p&gt;

&lt;p&gt;Open a terminal and run the following git command:&lt;br&gt;
&lt;strong&gt;git clone "url you just copied"&lt;/strong&gt;&lt;br&gt;
where “URL you just copied” (without the quotation marks) is the URL to the repository (your fork of this project). See the previous steps to obtain the URL.&lt;br&gt;
For example:&lt;br&gt;
git clone &lt;a href="https://github.com/this-is-you/first-contributions.git"&gt;https://github.com/this-is-you/first-contributions.git&lt;/a&gt;&lt;br&gt;
where this-is-you is your GitHub username. Here you're copying the contents of the first-contributions repository on GitHub to your computer.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Create a branch
&lt;/h2&gt;

&lt;p&gt;Change to the repository directory on your computer (if you are not already there):&lt;br&gt;
cd first-contributions&lt;br&gt;
Now create a branch using the git checkout command:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git checkout -b your-new-branch-name&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;strong&gt;git checkout -b alpha&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;(Here alpha is the name of the branch. You can choose a reasonable name for the branch.)&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Make necessary changes and commit those changes
&lt;/h2&gt;

&lt;p&gt;Now make any changes to a file in a text editor. Now, save the file.&lt;/p&gt;

&lt;p&gt;For example Open Contributors.md file in a text editor, add your name to it. Don't add it at the beginning or end of the file. Put it anywhere in between. Now, save the file.&lt;br&gt;
If you go to the project directory and execute the command git status, you'll see there are changes.&lt;br&gt;
Add those changes to the branch you just created using the git add command:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git add Contributors.md&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now commit those changes using the git commit command:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git commit -m "Add  to Contributors list"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here -m stands for a message. Always add a meaningful message while committing, so that it will be easy for other developers to see what the commit is about.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Push changes to GitHub
&lt;/h2&gt;

&lt;p&gt;Push your changes using the command git push:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git push origin &lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;replacing  with the name of the branch, you created earlier.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Submit your changes for review
&lt;/h2&gt;

&lt;p&gt;If you go to your repository on GitHub, you’ll see a Compare &amp;amp; pull request button. Click on that button.&lt;/p&gt;

&lt;p&gt;Now click on the “Create pull request” button. It will submit the pull request.&lt;/p&gt;

&lt;p&gt;It will notify the maintainer of the repository and he/she can decide whether to include your changes or not.&lt;/p&gt;

&lt;p&gt;Voila !! You did your first contribution.&lt;br&gt;
Happy learning!!&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>github</category>
      <category>firstpost</category>
    </item>
  </channel>
</rss>
