<?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>Forem: Anshu Pathak</title>
    <description>The latest articles on Forem by Anshu Pathak (@anshu_pathak).</description>
    <link>https://forem.com/anshu_pathak</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%2F323791%2F6eae053a-f797-45f6-bff2-a0506ebbb779.jpg</url>
      <title>Forem: Anshu Pathak</title>
      <link>https://forem.com/anshu_pathak</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/anshu_pathak"/>
    <language>en</language>
    <item>
      <title>Hello everyone ....</title>
      <dc:creator>Anshu Pathak</dc:creator>
      <pubDate>Tue, 15 Dec 2020 13:30:05 +0000</pubDate>
      <link>https://forem.com/anshu_pathak/hello-everyone-2m5i</link>
      <guid>https://forem.com/anshu_pathak/hello-everyone-2m5i</guid>
      <description>&lt;p&gt;Hello respected persons. i would like to know how i will start the study about the data scientist.. i really thank-full to you if you give any suggestion and suggest what i will start to learn.&lt;/p&gt;

&lt;h1&gt;
  
  
  kindly suggest !!!
&lt;/h1&gt;

&lt;p&gt;HaPpY CoRdInG :)&lt;/p&gt;

&lt;p&gt;thanks for reading&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>beginners</category>
      <category>programming</category>
      <category>devops</category>
    </item>
    <item>
      <title>Git: basic and the most useful commands</title>
      <dc:creator>Anshu Pathak</dc:creator>
      <pubDate>Thu, 10 Dec 2020 17:18:42 +0000</pubDate>
      <link>https://forem.com/anshu_pathak/git-basic-and-the-most-useful-commands-b6a</link>
      <guid>https://forem.com/anshu_pathak/git-basic-and-the-most-useful-commands-b6a</guid>
      <description>&lt;p&gt;Git for beginners&lt;/p&gt;

&lt;p&gt;Git is necessary for many companies and a very useful skill to have as a technical person. &lt;br&gt;
Almost it is the very basic need of a developer or any person who is doing cording. &lt;/p&gt;

&lt;p&gt;you may realize that knowing git is nearly as important as knowing an actual programming language.&lt;br&gt;
But still many people forget to check out how git works and what commands are responsible for what action.&lt;/p&gt;

&lt;p&gt;This is why today, I decided to create a simple blog about the basic git commands which you can take a look at and use whenever you’ve just forgotten what you have to put inside the command line or need to refresh your memory.&lt;/p&gt;

&lt;p&gt;In this article, we will decide about the git and how to use it or the most useful command as a developer which you most know.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GPF_C1cu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/mvaurmsfs9nbjxmiinvh.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GPF_C1cu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/mvaurmsfs9nbjxmiinvh.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let’s start!&lt;/p&gt;

&lt;p&gt;A few basic terms which help to understand git commands&lt;br&gt;
&lt;strong&gt;repository:&lt;/strong&gt;  keeps all your project's files, including commits and branches.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;branch:&lt;/strong&gt; is a copy of the repository holding the specific version. The main branch in git is master.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;commit:&lt;/strong&gt; may be imagined as a single save of changes to the specific branch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;checkout:&lt;/strong&gt; is the operation of switching between the current branch and the one specified in the command.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;master:&lt;/strong&gt; is the main branch of the repository.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;merge:&lt;/strong&gt; is an action that adds changes from one branch to another.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;fork:&lt;/strong&gt; is a copy of the repository.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;head:&lt;/strong&gt; is the most recent commit of the repository you work with.&lt;/p&gt;

&lt;p&gt;Basic git commands everyone should know&lt;br&gt;
&lt;strong&gt;git init | git init [folder]&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;git init&lt;/code&gt; is used to initialize an empty repository from the folder you are currently using this command or using folder path, both ways are correct. It’s used while starting a new project or if you want to initialize the git repo inside the existing project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git clone [repo URL] [folder]&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;git clone&lt;/code&gt; is used to copy the existing repository to the specified folder on your computer. Git clone can be used only with repo URL as a parameter, then it will copy the repository to the folder from where you used the command. If you want to copy the repository to a different location on your computer, add a folder path as a second parameter.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git add [directory | file]&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;git add&lt;/code&gt; stage all changes in the directory or in the file, and it depends on what you add as a parameter. In most cases, it's followed by git commit and git push commands.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git commit -m "[message]"&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;git commit -m "initial commit"&lt;/code&gt; this command is used to commit all staged changes with the custom message passed as a string. By changing -m parameter to -am it's possible to add and commit changes at once.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git push&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;git push origin branch_name&lt;/code&gt; is the command, which pushes changes to the origin branch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git status&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;git status&lt;/code&gt; is used to check the status of the modified files and it shows which files are staged, unstaged, and untracked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git log&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;git log&lt;/code&gt; is used to display the history of the commit in the default format.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git diff&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;git diff&lt;/code&gt; shows all unstaged differences between the index and the current directory. And another option is to use the command with the file name to display differences between the file and in the last commit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git pull&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;git pull&lt;/code&gt; is used to get changes from the original branch, and it merges the changes into the local branch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git fetch&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;git fetch --all&lt;/code&gt; This command retrieves the most recent changes from the origin branch but doesn't merge.&lt;/p&gt;

&lt;p&gt;Thanks for reading !!&lt;/p&gt;

&lt;p&gt;Happy cording&lt;/p&gt;

</description>
      <category>git</category>
      <category>programming</category>
      <category>beginners</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
