<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Motruri Shashank on Medium]]></title>
        <description><![CDATA[Stories by Motruri Shashank on Medium]]></description>
        <link>https://medium.com/@shashankmotruri?source=rss-75bc6d915ac------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Motruri Shashank on Medium</title>
            <link>https://medium.com/@shashankmotruri?source=rss-75bc6d915ac------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:53:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shashankmotruri/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Git hub Basic Commands]]></title>
            <link>https://shashankmotruri.medium.com/git-hub-basic-commands-55c9da32d9e9?source=rss-75bc6d915ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/55c9da32d9e9</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[git-bash]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Motruri Shashank]]></dc:creator>
            <pubDate>Thu, 15 Oct 2020 11:41:25 GMT</pubDate>
            <atom:updated>2020-10-18T17:16:55.459Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*r8DERYY9bGdtNBonaAfsUw.jpeg" /></figure><h4>— The better way to learn is by Experimenting —</h4><p>In this article the major commands of git hub are explained.</p><blockquote>Pr-requests : git bash and <a href="https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/connecting-to-github-with-ssh">ssh key should be linked</a></blockquote><ol><li>First things First , connect your git hub account to git bash using the follow command.</li></ol><pre>git config --global user.name &quot;shashankmotruri&quot; <br>git config --global user.email &quot;motrurishashank000@gmail.com</pre><blockquote>Make sure the name(optional) and email are same as in git hub.</blockquote><p>2. a. If you want to create a new repository.Create a new repository by clicking on top right of git hub.Next follow the below commands.</p><pre>git clone git@github.com:your_username/repository_name.git<br>cd repository_name<br>git init                                     //Initializes repo</pre><p>Now you just initialized your remote repository in git bash.You can see on right on command line that it was written master.This means that you are working on master branch.If you wish to work on different branch follow the below commands.</p><pre>git branch branch_name                       //create new branch<br>git branch                                   //List all branches <br>git checkout branch_name                     //switch to branch_name</pre><p>This will set your changes to a new branch named branch_name.In this article I will using master branch.</p><p>Now you can work on your repo and make changes. After you are done with your changes , follow below commands.</p><pre>git status                                  //Status of working tree<br>git add .                                   // Add all changes<br>git commit -m &quot;Message&quot;                     //Commit your changes</pre><p>Make sure the Message is short and looks good to know what changes you made.</p><p>Now you need to pull these changes to remote repo by following command.</p><pre>git pull origin master</pre><blockquote>Here we are working on master branch.If you are on different branch then make sure to replace master with your branch name.</blockquote><p>Now open your git hub and check your fork repo and refresh the page.You can see the changes you made.</p><p>2.b. If you like to contribute to other open source projects then first fork,clone and initialize their repository.</p><blockquote>For beginners it is always advised to create a new branch and contribute to open source projects.</blockquote><p>Create a new branch branch_name and checkout.</p><pre>git branch branch_name                       //create new branch<br>git branch                                   //List all branches <br>git checkout branch_name                     //switch to branch_name</pre><p>Now make necessary changes and commit the changes with proper message.Then pull these change.</p><pre>git pull origin branch_name</pre><p>Next open git hub and go to your forked repo and refresh the page.You can see a dailogue box appears, requesting to make a pull request.Create a pull request .And add description (optional) .</p><p>3. If you want to review and read a history of everything that happens to a repository use any of the following command.</p><pre>git log <br>git log --oneline</pre><p>If you want to know the changes you made to the repo.</p><pre>git diff</pre><p>That’s It you are ready to become a developer. 😏</p><p>😃 If you like to Contribute to your first open source project feel free to contribute to this <a href="https://github.com/shashankmotruri/learn_git">repo</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55c9da32d9e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>