<?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: Mathu varshtih</title>
    <description>The latest articles on DEV Community by Mathu varshtih (@mvarshith).</description>
    <link>https://dev.to/mvarshith</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4118570%2F4a7fcf0b-5451-4620-8000-1d0835765ff3.jpg</url>
      <title>DEV Community: Mathu varshtih</title>
      <link>https://dev.to/mvarshith</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mvarshith"/>
    <language>en</language>
    <item>
      <title>Introduction to Git : Beginner level</title>
      <dc:creator>Mathu varshtih</dc:creator>
      <pubDate>Thu, 10 Sep 2026 18:16:48 +0000</pubDate>
      <link>https://dev.to/mvarshith/introduction-to-git-beginner-level-26h9</link>
      <guid>https://dev.to/mvarshith/introduction-to-git-beginner-level-26h9</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is git?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Git is the distributed version control system that tracks change in computer files , primarly used for coordinating work among the deveopers writing software source code.&lt;/p&gt;

&lt;p&gt;Types of version control:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Local version control system.&lt;/li&gt;
&lt;li&gt;Centralized version control systrem.&lt;/li&gt;
&lt;li&gt;Distributed version control syatem.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Basic Git Commands:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;git init&lt;/code&gt; – Initialise the working directory.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git add &amp;lt;filename&amp;gt;&lt;/code&gt; - Adds the specified file to the staging area.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git commit -m “write the message msg”&lt;/code&gt; - commit command helps to commit in history.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git push origin main&lt;/code&gt; - push your file to the repository (github/gitlabs) – {assume when the remote is orgin and main}.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git status&lt;/code&gt; – to find the status of the directory.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git log&lt;/code&gt; – It is used to see the history of commit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Some additional useful commands:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;git diff&lt;/code&gt; – shows the older and new change.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git rm --cached &amp;lt;file name&amp;gt;&lt;/code&gt; - remove the the file from git.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git switch -c &amp;lt;branchname&amp;gt;&lt;/code&gt; - to create a branch.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git switch &amp;lt;main/branchname&amp;gt;&lt;/code&gt; – to swtich between branches and main.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git merge &amp;lt;branchname&amp;gt;&lt;/code&gt; -to merge the branch.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git stash&lt;/code&gt; - Temporarily saves uncommitted changes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git fork&lt;/code&gt; - personal copy of someone else's repository.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>beginners</category>
      <category>git</category>
      <category>gitlab</category>
      <category>software</category>
    </item>
  </channel>
</rss>
