<?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 Ganeshpotnuru on Medium]]></title>
        <description><![CDATA[Stories by Ganeshpotnuru on Medium]]></description>
        <link>https://medium.com/@ganeshpotnuru414_40411?source=rss-465863385982------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Ganeshpotnuru on Medium</title>
            <link>https://medium.com/@ganeshpotnuru414_40411?source=rss-465863385982------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:41:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ganeshpotnuru414_40411/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[Setting a new Git repo to existing code folder]]></title>
            <link>https://medium.com/@ganeshpotnuru414_40411/setting-a-new-git-repo-to-existing-code-folder-a43e8bb7d914?source=rss-465863385982------2</link>
            <guid isPermaLink="false">https://medium.com/p/a43e8bb7d914</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[create-new-repositories]]></category>
            <dc:creator><![CDATA[Ganeshpotnuru]]></dc:creator>
            <pubDate>Fri, 24 Apr 2020 07:55:12 GMT</pubDate>
            <atom:updated>2020-04-30T08:42:08.366Z</atom:updated>
            <content:encoded><![CDATA[<p>There are two ways to push our existing code to git remote repository for the very first time.</p><p>Login to the git account and create a new repository if you don’t have one already.</p><h4>First approach:</h4><p>Create an empty folder in your system. Navigate to that folder using the command line or terminal.</p><p>Clone git in that folder using the command</p><blockquote>Git clone <a href="https://github.com/ganeshpotnuru/voipnotifications.git">https://github.com/username/remoname.git</a></blockquote><p>Copy your code to this newly created empty folder. Check git status to verify the new files are added or not by using the below command.</p><blockquote>git status</blockquote><p>This will show the list of changes you have in the folder in red color</p><p>From then it is a normal process like firstly add all your all files to staging</p><blockquote>git add .</blockquote><p>To commit the changes</p><blockquote>git commit -m “message”</blockquote><p>To push your changes to git remote repo.</p><blockquote>git push</blockquote><p>Then the code files will go to the master branch.</p><p>The other way of doing it is, initialize git in the existing folder without creating the new folder. For that follow below steps</p><h4>Second approach:</h4><p>Firstly navigate to the existing code folder and initialize the git in it.</p><blockquote>git init</blockquote><p>Set remote URL for the git</p><blockquote>git remote add origin <a href="https://github.com/ganeshpotnuru/voipnotifications.git">https://github.com/username/remoname.git</a></blockquote><p>Add files to the staging</p><blockquote>git add .</blockquote><p>Commit your changes with a message</p><blockquote>git commit -m “Commit message”</blockquote><p>If we try to push our code using git push, we will get below message</p><blockquote>fatal: The current branch master has no upstream branch.</blockquote><blockquote>To push the current branch and set the remote as upstream, use</blockquote><blockquote>git push--set-upstream origin master</blockquote><p>And if we try the above command we will get another message saying</p><blockquote>! [rejected] master -&gt; master (fetch first)</blockquote><blockquote>error: failed to push some refs to ‘https://github.com/ganeshpotnuru/VOIPPlugin.git&#39;</blockquote><p>If we create git ignore and license files, we have to fetch them to our local folder first using the below command.</p><blockquote>git pull — rebase origin master</blockquote><p>If we do not create those files, we can directly push our changes.</p><blockquote>git push origin master</blockquote><p>With this we can see all our code files in git repository.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a43e8bb7d914" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>