<?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: abhinandanmishra1</title>
    <description>The latest articles on DEV Community by abhinandanmishra1 (@abhinandanmishra1).</description>
    <link>https://dev.to/abhinandanmishra1</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%2F812481%2Fa04d20db-4b85-476a-b557-b81f84fd857a.jpeg</url>
      <title>DEV Community: abhinandanmishra1</title>
      <link>https://dev.to/abhinandanmishra1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abhinandanmishra1"/>
    <language>en</language>
    <item>
      <title>Basic Git commands for development</title>
      <dc:creator>abhinandanmishra1</dc:creator>
      <pubDate>Sun, 03 Apr 2022 19:24:19 +0000</pubDate>
      <link>https://dev.to/abhinandanmishra1/basic-git-commands-for-development-1766</link>
      <guid>https://dev.to/abhinandanmishra1/basic-git-commands-for-development-1766</guid>
      <description>&lt;p&gt;While starting the development journey beginners found it very hard to use git and github. Even there are very good developers who get stuck while using git and github.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is git and github?&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Github can be understood by assuming it is an online storage drive (similar to our local drives) where we can store our data(projects) in repositories(similar to our local folders).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Github provides an easiness to manage our projects, fork projects of others, and contribute to others' projects.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Git is a command-line tool that is used to manage the remote github repositories by writing some commands on local git CLI.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;How to use git and github?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create an account on &lt;a href="https://github.com/"&gt;Github&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://git-scm.com/download/"&gt;Download&lt;/a&gt; git on your local machine.&lt;/li&gt;
&lt;li&gt;Setup git CLI by using given commands.

&lt;ol&gt;
&lt;li&gt;&lt;code&gt;git config --global user.name "Your Username"&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;git config --global user.email "your_mail@mail.com"&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Now you're set to use git and github.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Create a new repository on your github account.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lghplDG---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zqq2lnn13jv2bhpcltsb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lghplDG---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zqq2lnn13jv2bhpcltsb.png" alt="New Repo" width="537" height="613"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Write the name and description of your repository and choose the visibility (Private or Public) as per the need.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6JI8XcHZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aj1ea4pbg8i9v3ku5260.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6JI8XcHZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aj1ea4pbg8i9v3ku5260.png" alt="Created Repo" width="880" height="632"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now your remote repository has been created and you can connect it with your local repository by the given HTTPS/SSH Address. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AOmeft3t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kv6k08oft3oitwl01d5f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AOmeft3t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kv6k08oft3oitwl01d5f.png" alt="HTTP Address" width="880" height="206"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Go to your respective local repository and use the given commands to connect with your remote repository. &lt;br&gt;
&lt;code&gt;echo "# Repo_Name" &amp;gt;&amp;gt; README.md&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git init&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git add README.md&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git commit -m "first commit"&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git branch -M main&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git remote add origin https://github.com/abhinandanmishra1/Repo_Name.git&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git push -u origin main&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now you've made the first push to your repository.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a more detailed explanation and cheat sheet for all important commands &lt;a href="https://github.com/abhinandanmishra1/Repo_Name"&gt;Visit This Repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That's all about git and github.&lt;/strong&gt;&lt;br&gt;
Thanks for reading!&lt;/p&gt;

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