<?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: Ritik Patel</title>
    <description>The latest articles on DEV Community by Ritik Patel (@ritik_patel05).</description>
    <link>https://dev.to/ritik_patel05</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%2F532747%2Fef752f8c-a159-4338-beb9-f1bd4f2d3d70.png</url>
      <title>DEV Community: Ritik Patel</title>
      <link>https://dev.to/ritik_patel05</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ritik_patel05"/>
    <language>en</language>
    <item>
      <title>6 months intern as a Software Engineer, GeeksforGeeks</title>
      <dc:creator>Ritik Patel</dc:creator>
      <pubDate>Mon, 23 Aug 2021 11:22:13 +0000</pubDate>
      <link>https://dev.to/ritik_patel05/6-months-intern-as-a-software-engineer-geeksforgeeks-2l3k</link>
      <guid>https://dev.to/ritik_patel05/6-months-intern-as-a-software-engineer-geeksforgeeks-2l3k</guid>
      <description>&lt;p&gt;I was in my 3rd year, during the end of January 2021, I was approached by GeeksforGeeks Hiring team to join immediately as an intern. I wasn't sure about taking the opportunity, as it was an in-office opportunity. Later, talked with some of my friends, and decided to give it a shot.&lt;/p&gt;

&lt;p&gt;I gave my interviews, it consisted of DSA round, and then web development round. After that last round, was by HR to ask me when I will be able to join the team at Noida, Uttar Pradesh. I replied as 8'th February. Soon got the offer letter, it was my first paid internship so it was a happy moment for me.&lt;/p&gt;

&lt;p&gt;On the first day, I visited the office, it was a not so big, but spacious enough. I was assigned the Auth team of GeeksforGeeks. &lt;a href="https://www.linkedin.com/in/shubham-baranwal-55698260/"&gt;Shubham Baranwal&lt;/a&gt; was the team lead. He told me to go through the basics of git, bitbucket, jira, php, amazon dynamoDB, as I will be working on these technologies.&lt;/p&gt;

&lt;p&gt;After one week, I was aware about some of the workings of these technologies. I received my first task, and was assigned &lt;a href="https://www.linkedin.com/in/saurav-prateek-7b2096140/"&gt;Saurav Prateek&lt;/a&gt; as my mentor or guide during internship. He taught me almost everything from creating branches using git, making API's, improving code quality, reviewed my code before sending it to merge to solving my silliest of doubts. I couldn't have wished for a better mentor.&lt;/p&gt;

&lt;p&gt;After one month, I even got to attend team party at one of the clubs in Delhi. It was so much fun. During mid April, corona cases again started to increase, and everyone was told to go back home. The situation only got worse after that. After that, 4 months of my internship were spent doing work from home. It was not that much fun as office. Though, I got lot of time to do other things.&lt;/p&gt;

&lt;p&gt;This was my first time working as a professional, and all of it was worth it. Thanks to GeeksforGeeks!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Most used git commands</title>
      <dc:creator>Ritik Patel</dc:creator>
      <pubDate>Mon, 23 Aug 2021 08:57:21 +0000</pubDate>
      <link>https://dev.to/ritik_patel05/most-used-git-commands-9bp</link>
      <guid>https://dev.to/ritik_patel05/most-used-git-commands-9bp</guid>
      <description>&lt;h1&gt;
  
  
  1. git remote
&lt;/h1&gt;

&lt;p&gt;To start working on a repository, you need to either clone the repository or add remote repository. Cloning automatically adds 'origin' as your remote.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git remote add &amp;lt;remote_name&amp;gt; &amp;lt;url&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Example: Consider I want to start working on react repository,&lt;br&gt;
I would type the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git remote add ritik https://github.com/facebook/react&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;To check whether your remote repository is added or not,&lt;br&gt;
You can use:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git remote -v&lt;/code&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  2. git checkout
&lt;/h1&gt;

&lt;p&gt;After setting up the remote, you would like to start working on the issue #70. So, you should make a branch for the same.&lt;/p&gt;

&lt;p&gt;So, to create a new branch and switch to it at the same time,&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git checkout -b &amp;lt;branch_name&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Example,&lt;br&gt;
&lt;code&gt;git checkout -b issue#70-fix-button-styling&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Note:&lt;br&gt;
&lt;code&gt;git checkout -b&lt;/code&gt;&lt;br&gt;
is shorthand for&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git branch issue#70-fix-button-styling&lt;br&gt;
   git checkout issue#70-fix-button-styling&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;h1&gt;
  
  
  3. git pull
&lt;/h1&gt;

&lt;p&gt;While working on a branch, it might be the case that one of the collaborators has made changes to your branch, or there are some new changes in the master branch that you want your branch to have. You can do by,&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git pull &amp;lt;remote_name&amp;gt; &amp;lt;branch_name&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Example,&lt;br&gt;
&lt;code&gt;git pull ritik issue#70-fix-button-styling&lt;/code&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  4. git status
&lt;/h1&gt;

&lt;p&gt;The git status command displays the state of the working directory and the staging area. It lets you see which changes have been staged, which haven’t, and which files aren’t being tracked by Git. Status output does not show you any information regarding the committed project history.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git status&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The output will look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# On branch issue#70-fix-button-styling
# Changes to be committed:
# (use "git reset HEAD &amp;lt;file&amp;gt;..." to unstage)
#
#modified: hello.js
#
# Changes not staged for commit:
# (use "git add &amp;lt;file&amp;gt;..." to update what will be committed)
# (use "git checkout -- &amp;lt;file&amp;gt;..." to discard changes in working directory)
#
#modified: index.html
#
# Untracked files:
# (use "git add &amp;lt;file&amp;gt;..." to include in what will be committed)
#
#index.css
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  5. git add
&lt;/h1&gt;

&lt;p&gt;After making a change, if you want to add an untracked file to the staging area for next commit. git add lets you do that.&lt;/p&gt;

&lt;p&gt;Lets say you made changes to index.css file and want to add this file for commit. First we need to add it from untracked files to the tracked files.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git add &amp;lt;filePath1&amp;gt; &amp;lt;filePath2&amp;gt; &amp;lt;filePath3&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;(Space separated filenames to add each file to staging area)&lt;/p&gt;

&lt;p&gt;example,&lt;br&gt;
&lt;code&gt;git add index.css&lt;/code&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  6. git commit
&lt;/h1&gt;

&lt;p&gt;To commit all the files that are in staging area, i.e, all the tracked files.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git commit -m &amp;lt;commit_message&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Example,&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git commit -m "style: fixed button colors"&lt;/code&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  7. git push
&lt;/h1&gt;

&lt;p&gt;Our repository is still local, only we can view it, make changes to it. To make it public and to push all the commits, on our first push we would write:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git push -u &amp;lt;remote_name&amp;gt; &amp;lt;branch_name&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Example,&lt;br&gt;
&lt;code&gt;git push -u ritik issue#70-fix-button-styling&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After our first push, if we make more commits and to push them on to the remote repository. We can use:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git push&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Note: Git push only uploads changes that are committed.&lt;/p&gt;

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