<?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: Sourav Badami</title>
    <description>The latest articles on DEV Community by Sourav Badami (@souravbadami).</description>
    <link>https://dev.to/souravbadami</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%2F199099%2Fcc484458-4251-4742-8ede-9af88e0a088e.jpg</url>
      <title>DEV Community: Sourav Badami</title>
      <link>https://dev.to/souravbadami</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/souravbadami"/>
    <language>en</language>
    <item>
      <title>First Contribution to Open Source!</title>
      <dc:creator>Sourav Badami</dc:creator>
      <pubDate>Sun, 07 Jun 2020 15:36:16 +0000</pubDate>
      <link>https://dev.to/souravbadami/first-contribution-to-open-source-31lg</link>
      <guid>https://dev.to/souravbadami/first-contribution-to-open-source-31lg</guid>
      <description>&lt;p&gt;It’s hard. It’s always hard the first time you do something. Especially when you are collaborating, making mistakes isn’t a comfortable thing. We wanted to simplify the way new open-source contributors learn &amp;amp; contribute for the first time.&lt;/p&gt;

&lt;p&gt;Reading articles &amp;amp; watching tutorials can help, but what’s better than actually doing the stuff in a practice environment? This project aims at providing guidance &amp;amp; simplifying the way beginners make their first contribution. If you are looking to make your first contribution, follow the steps below.&lt;/p&gt;

&lt;p&gt;If you don’t have git on your machine, &lt;a href="https://help.github.com/articles/set-up-git/"&gt;install it&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let’s start with forking the repository&lt;/strong&gt;!&lt;/p&gt;

&lt;p&gt;Fork &lt;a href="https://github.com/betafactory/FirstContribution"&gt;this&lt;/a&gt; repository by clicking on the fork button on the top of this page. This will create a copy of this repository in your account.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fubn217fm8l8v0k8dmfy7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fubn217fm8l8v0k8dmfy7.png" alt="Alt Text" width="800" height="531"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Now clone the repository&lt;/strong&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fprpd3xnfonpmcf1xib22.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fprpd3xnfonpmcf1xib22.png" alt="Alt Text" width="800" height="582"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Open a terminal and run the following git command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone "url you just copied"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;where “URL you just copied” (without the quote marks) is the URL to this repository (your fork of this project). See the previous steps to obtain the URL.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone https://github.com/this-is-you/FirstContribution.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5hkb2pq0r2h02j3w8xbr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5hkb2pq0r2h02j3w8xbr.png" alt="Alt Text" width="800" height="639"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;where this-is-you is your GitHub username. Here you're copying the contents of the FirstContribution repository on GitHub to your computer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create a branch&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Change to the repository directory on your computer (if you are not already there):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd FirstContribution
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now create a branch using the git checkout command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git checkout -b &amp;lt;add-your-new-branch-name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git checkout -b add-alonzo-church
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(The name of the branch does not need to have the word add in it, but it’s a reasonable thing to include because the purpose of this branch is to add your name to a list.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Make necessary changes and commit those changes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now open &lt;code&gt;Contributors.md&lt;/code&gt; file in a text editor, add your name to it. Now, save the file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwv574hziggdfwklmh4ys.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwv574hziggdfwklmh4ys.png" alt="Alt Text" width="800" height="185"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you go to the project directory and execute the command git status, you'll see there are changes.&lt;/p&gt;

&lt;p&gt;Add those changes to the branch you just created using the git add command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git add Contributors.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git commit -m "Add &amp;lt;your-name&amp;gt; to Contributors list"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;replacing &lt;code&gt;&amp;lt;your-name&amp;gt;&lt;/code&gt; with your name.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Push changes to GitHub&lt;/strong&gt;&lt;/p&gt;

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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git push origin &amp;lt;add-your-branch-name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;replacing &lt;code&gt;&amp;lt;add-your-branch-name&amp;gt;&lt;/code&gt; with the name of the branch, you created earlier.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Submit your changes for review&lt;/strong&gt;&lt;/p&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;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwdle0tsy8nzi7wf1srro.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwdle0tsy8nzi7wf1srro.png" alt="Alt Text" width="800" height="161"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now submit the pull request.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fmrvohbyqna3nu14qft28.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fmrvohbyqna3nu14qft28.png" alt="Alt Text" width="800" height="457"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Soon we’ll be merging all your changes into the master branch of this project. You will get a notification email once the changes have been merged.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where to go from here?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Congrats! You just completed the standard fork -&amp;gt; clone -&amp;gt; edit -&amp;gt; PR workflow that you’ll encounter often as a contributor!&lt;/p&gt;

&lt;p&gt;You could join our slack team in case you need any help or have any questions. &lt;a href="https://communityinviter.com/apps/thebetafactory/beta-factory"&gt;Join the slack team&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Originally posted at &lt;strong&gt;&lt;a href="https://medium.com/betafactory/first-contribution-to-open-source-9057794620b7"&gt;Beta Factory Blog&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

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