<?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: Rubén Esparza</title>
    <description>The latest articles on DEV Community by Rubén Esparza (@resparzasoto).</description>
    <link>https://dev.to/resparzasoto</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%2F446049%2F4e7b7a7b-dba8-477c-8007-50c8ceae81c1.jpg</url>
      <title>DEV Community: Rubén Esparza</title>
      <link>https://dev.to/resparzasoto</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/resparzasoto"/>
    <language>en</language>
    <item>
      <title>How to change the origin of my repository?</title>
      <dc:creator>Rubén Esparza</dc:creator>
      <pubDate>Mon, 30 Nov 2020 20:05:40 +0000</pubDate>
      <link>https://dev.to/resparzasoto/how-to-change-the-origin-of-my-repository-28il</link>
      <guid>https://dev.to/resparzasoto/how-to-change-the-origin-of-my-repository-28il</guid>
      <description>&lt;p&gt;Usually you need change the remote target of your repository when you download a template project, the url of remote target are change or something like that...&lt;/p&gt;

&lt;p&gt;In this post we take the example of &lt;a href="https://github.com/ide-stories/vscode-stories-api"&gt;vscode-stories-api&lt;/a&gt;, because all need stories in ours apps or not?&lt;/p&gt;

&lt;h1&gt;
  
  
  What is origin
&lt;/h1&gt;

&lt;p&gt;Origin is only one aliases for remote repository url, like environment variable in your OS.&lt;/p&gt;

&lt;h1&gt;
  
  
  What is the remote origin of repository
&lt;/h1&gt;

&lt;p&gt;Get remote origin&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;git remote &lt;span class="nt"&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AMdrCjR9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/t396rf99veudf3f8xv6l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AMdrCjR9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/t396rf99veudf3f8xv6l.png" alt="git-remote-v"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Remove remote origin
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;git remote remove origin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SfylmHfv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/figcep9afra76lqz7fqy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SfylmHfv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/figcep9afra76lqz7fqy.png" alt="git-remote-remove"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Verify origin
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;git remote &lt;span class="nt"&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CcVaM7SZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/2mu0wd5n2h9g2gujm73d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CcVaM7SZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/2mu0wd5n2h9g2gujm73d.png" alt="git-remote-remove-verify"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Add remote origin
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;git remote add origin &lt;span class="o"&gt;[&lt;/span&gt;repository url]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_B4VLG57--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/z0l96qg88oy1deo02avw.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_B4VLG57--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/z0l96qg88oy1deo02avw.PNG" alt="git-remote-add-origin"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Verify the new origin
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;git remote &lt;span class="nt"&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--m3jW7gUg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/c0cu5uubf3mhy0ve481w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--m3jW7gUg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/c0cu5uubf3mhy0ve481w.png" alt="git-remote-add-origin-verify"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;Now our origin repository it's the repository of vs-code-stories extension new owner!&lt;/p&gt;

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