<?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: Nita Nagdewate</title>
    <description>The latest articles on DEV Community by Nita Nagdewate (@nitanagdeote).</description>
    <link>https://dev.to/nitanagdeote</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%2F515636%2Fc2245611-4ad4-443e-bd93-2be78f16fdc1.jpeg</url>
      <title>DEV Community: Nita Nagdewate</title>
      <link>https://dev.to/nitanagdeote</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nitanagdeote"/>
    <language>en</language>
    <item>
      <title>How to work with git</title>
      <dc:creator>Nita Nagdewate</dc:creator>
      <pubDate>Thu, 07 Sep 2023 18:44:23 +0000</pubDate>
      <link>https://dev.to/nitanagdeote/how-to-work-with-git-5bk8</link>
      <guid>https://dev.to/nitanagdeote/how-to-work-with-git-5bk8</guid>
      <description>&lt;p&gt;&lt;strong&gt;Step-by-step process&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Git is a version control system used to track changes in software development.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to get started with git?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a directory on your local machine, e.g., git-repos-test&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Move to directory git-repos-test&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;cd git-repos-test&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create a repository on GitHub, e.g., test-git&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Get the repository on your local machine using&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;git clone git@github.com:nitanagdeote/test-git.git&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Move to the repository using&lt;br&gt;
-&lt;code&gt;cd test-git&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create a React project or any other inside test-git, e.g., test-git-react-vite-project&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Make changes in your project directory.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check the status&lt;br&gt;
&lt;code&gt;git status&lt;/code&gt;&lt;br&gt;
The result will show if changes are made or not.&lt;br&gt;
Add the changes using,&lt;br&gt;
&lt;code&gt;git add .&lt;/code&gt;&lt;br&gt;
Then, commit the changes using,&lt;br&gt;
&lt;code&gt;git commit -m 'commit name'&lt;br&gt;
&lt;/code&gt;The changes can be pushed to the git repository using&lt;br&gt;
&lt;code&gt;git push&lt;/code&gt;&lt;br&gt;
Create a branch using&lt;br&gt;
&lt;code&gt;git branch 'branch name'&lt;/code&gt;&lt;br&gt;
Switch to branch using&lt;br&gt;
&lt;code&gt;git checkout 'branch name'&lt;/code&gt;&lt;br&gt;
To pull changes from the remote git repository&lt;br&gt;
&lt;code&gt;git pull&lt;/code&gt;&lt;br&gt;
To see how many lines of code has changed&lt;br&gt;
&lt;code&gt;git diff&lt;/code&gt;&lt;br&gt;
These are the basic commands to get started with git.&lt;br&gt;
To check if it's a git repo, use&lt;br&gt;
&lt;code&gt;ls -a&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Definitions&lt;/strong&gt;&lt;br&gt;
Remote: means the repository hosted on the server&lt;br&gt;
Local: directory on the local machine&lt;br&gt;
Origin: is also the remote repository&lt;br&gt;
git: command line tool&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;What will you need to get started?&lt;/strong&gt;&lt;br&gt;
Terminal window to use the git commands&lt;br&gt;
GitHub&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Resources&lt;/strong&gt;&lt;br&gt;
Git - Wikipedia&lt;br&gt;
Git () is a distributed version control system that tracks changes in any set of computer files, usually used for…en.wikipedia.org&lt;br&gt;
GitHub: Let's build from here&lt;br&gt;
GitHub is where over 100 million developers shape the future of software, together. Contribute to the open source…github.com&lt;/p&gt;

</description>
      <category>github</category>
      <category>beginners</category>
      <category>softwaredevelopment</category>
      <category>git</category>
    </item>
  </channel>
</rss>
