<?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: Monish B</title>
    <description>The latest articles on DEV Community by Monish B (@bmonish).</description>
    <link>https://dev.to/bmonish</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%2F703311%2F80031fa9-9ec0-4b29-9815-968d182b8744.jpeg</url>
      <title>DEV Community: Monish B</title>
      <link>https://dev.to/bmonish</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bmonish"/>
    <language>en</language>
    <item>
      <title>GitHub 101: Uploading Files to a New Repository via Command Line</title>
      <dc:creator>Monish B</dc:creator>
      <pubDate>Fri, 14 Oct 2022 09:22:56 +0000</pubDate>
      <link>https://dev.to/bmonish/github-101-uploading-files-to-a-new-repository-via-command-line-ph1</link>
      <guid>https://dev.to/bmonish/github-101-uploading-files-to-a-new-repository-via-command-line-ph1</guid>
      <description>&lt;p&gt;So at this point I assume you should know &lt;em&gt;How to create a Repository,&lt;/em&gt; If you don't do checkout my previous  &lt;a href="https://dev.to/bmonish/github-101-creating-a-new-repository-in-github-gla"&gt;article here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Let's dive in and add files via the Command Line.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Follow the steps 1, 2 and 3 from my  &lt;a href="https://dev.to/bmonish/github-101-creating-a-new-repository-in-github-gla"&gt;previous article!&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once done, You should see a screen like this.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1619949018203%2FpdRrHwyxQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1619949018203%2FpdRrHwyxQ.png" alt="image.png"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Assuming you have a folder created in your local machine, Open the terminal and redirect to the project directory. (I have three files with boilerplate code)&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1619949199040%2F2jVJRMaIR.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1619949199040%2F2jVJRMaIR.png" alt="image.png"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following command to &lt;em&gt;Initialize&lt;/em&gt; the repository.&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git init
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1619949300204%2FF-Ifzmdo3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1619949300204%2FF-Ifzmdo3.png" alt="image.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Now you have to let your machine know which remote repository you're planning to work on. To do that copy the
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git remote add origin &amp;lt;url&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;line from the 3rd step and execute it.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1619949432509%2F4clBgyhoH.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1619949432509%2F4clBgyhoH.png" alt="image.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;To add all files run
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git add .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;or you can add only a specific file by executing&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 &amp;lt;filename&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The former will add files to the changing area and the later will add only the &lt;em&gt;index.html&lt;/em&gt; file.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;After running the commands, If you want to check the status of your working directory execute
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1619949624327%2FhryE_Jdxs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1619949624327%2FhryE_Jdxs.png" alt="image.png"&gt;&lt;/a&gt; It will give you an overview of the changes that are tracked and has been added to the stage.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Now, to create a commit execute
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git commit -m"&amp;lt;Desc. of your commit&amp;gt;"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Finally push your changes by executing
&lt;/li&gt;
&lt;/ol&gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1619949999566%2F1RSayqN6c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1619949999566%2F1RSayqN6c.png" alt="image.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You should now see your files in the repository!
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1619950078663%2FkZyVw8dFW.png" alt="image.png"&gt;
_________________________&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Feel free to drop your suggestions in the comments and if you find it useful give me a like and share it with someone who might benefit from it.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Reach out to me on my Instagram  &lt;a href="https://www.instagram.com/monish.codes/" rel="noopener noreferrer"&gt;@monish.codes&lt;/a&gt; If you have any queries or just want to have a conversation! See you on the flip side.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>github</category>
      <category>versioncontrol</category>
    </item>
    <item>
      <title>GitHub 101: Creating a New Repository in GitHub</title>
      <dc:creator>Monish B</dc:creator>
      <pubDate>Wed, 12 Oct 2022 07:19:44 +0000</pubDate>
      <link>https://dev.to/bmonish/github-101-creating-a-new-repository-in-github-gla</link>
      <guid>https://dev.to/bmonish/github-101-creating-a-new-repository-in-github-gla</guid>
      <description>&lt;p&gt;As a software engineer, learning a version control tool is one of the best things you can have in your bag. &lt;/p&gt;

&lt;p&gt;Right off the bat, I want to clear this doubt many people have!&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Is Git and GitHub the same?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The answer is &lt;em&gt;NO!&lt;/em&gt; In order to explain it in simpler terms,&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Git&lt;/strong&gt; is a version control system that lets you manage and keep track of your source code history.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;GitHub&lt;/strong&gt; is a cloud based hosting service that lets you manage &lt;em&gt;Git&lt;/em&gt; Repositories.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to create a GitHub Repository?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Signup&lt;/em&gt;&lt;/strong&gt; for your GitHub account  &lt;a href="https://github.com/"&gt;here.&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2hb0XnWm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1619335328218/MZU9j-O0n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2hb0XnWm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1619335328218/MZU9j-O0n.png" alt="image.png" width="800" height="417"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;After you create an account, you should see a create &lt;strong&gt;New&lt;/strong&gt; repository button.&lt;br&gt;
You can also  &lt;a href="https://github.com/new"&gt;click this link.&lt;/a&gt;  &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--F8EmwcxK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1619336561654/dAb1zu_Q9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--F8EmwcxK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1619336561654/dAb1zu_Q9.png" alt="image.png" width="749" height="625"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Fill in the repository &lt;strong&gt;Name, Description and the Visibility (Public / Private).&lt;/strong&gt; And then Click &lt;strong&gt;&lt;em&gt;Create Repository.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once done, You should see a screen like this. &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AumtYe19--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1619337531473/7BLFBdU3x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AumtYe19--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1619337531473/7BLFBdU3x.png" alt="image.png" width="800" height="448"&gt;&lt;/a&gt; There are many ways that you can add files to the repository. But in this article we will see how to &lt;strong&gt;directly upload existing files.&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click &lt;strong&gt;&lt;em&gt;upload an existing file&lt;/em&gt;&lt;/strong&gt; and in the following page you will be able to upload files from your local machine.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once uploaded, you can add a &lt;strong&gt;Commit Title and Description&lt;/strong&gt; to make it more meaningful. &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xcNI1wKX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1619338038584/fDiIcq6fS.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xcNI1wKX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1619338038584/fDiIcq6fS.png" alt="image.png" width="800" height="263"&gt;&lt;/a&gt; And then Click &lt;em&gt;Commit Changes.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Voila! You have created your &lt;strong&gt;First Repository&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dh7qsbd3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1619338101680/3qEkfhwhg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dh7qsbd3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1619338101680/3qEkfhwhg.png" alt="image.png" width="800" height="354"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>github</category>
      <category>git</category>
      <category>versioncontrol</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
