Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you are the only person working on the project, it's not a big problem, because you only have to do #2.</p> <p>Let's say your username is <code>someuser</code> and your project is called <code>someproject</code>.</p> <p>Then your project's URL will be<sup>1</sup></p> <pre><code>git@github.com:someuser/someproject.git </code></pre> <p>If you rename your project, it will change the <code>someproject</code> part of the URL, e.g.</p> <pre><code>git@github.com:someuser/newprojectname.git </code></pre> <p>(see footnote if your URL does not look like this).</p> <p>Your working copy of <code>git</code> uses this URL when you do a <code>push</code> or <code>pull</code>.</p> <p>So after you rename your project, you will have to tell your working copy the new URL.</p> <p>You can do that in two steps:</p> <p>Firstly, cd to your local git directory, and find out what remote name(s) refer to that URL</p> <pre><code>$ git remote -v origin git@github.com:someuser/someproject.git </code></pre> <p>Then, set the new URL</p> <pre><code>$ git remote set-url origin git@github.com:someuser/newprojectname.git </code></pre> <p>or in older versions of git, you might need</p> <pre><code>$ git remote rm origin $ git remote add origin git@github.com:someuser/newprojectname.git </code></pre> <p>(origin is the most common remote name, but it might be called something else.)</p> <p>But if there's lots of people who are working on your project, they will all need to do the above steps, and maybe you don't even know how to contact them all to tell them. That's what #1 is about.</p> <p>Further reading:</p> <ul> <li><a href="http://help.github.com/remotes/" rel="noreferrer">github - working with remotes</a></li> <li><a href="http://gitref.org/remotes/" rel="noreferrer">Git Reference - remotes</a></li> <li><a href="http://book.git-scm.com/3_distributed_workflows.html" rel="noreferrer">Git Book - Distributed Workflows</a></li> </ul> <p>Footnotes:</p> <p>1 The exact format of your URL depends on which protocol you are using, e.g.</p> <ul> <li>SSH = git@github.com:someuser/someproject.git</li> <li>HTTPS = <a href="https://someuser@github.com/someuser/someproject.git" rel="noreferrer">https://someuser@github.com/someuser/someproject.git</a></li> <li>GIT = git://github.com/someuser/someproject.git</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload