Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are various possible interpretations of what is meant by renaming a git repository: the displayed name, the repository directory, or the remote repository name. Each requires different steps to rename.</p> <h2>Displayed Name</h2> <p>Rename the displayed name (e.g., shown by <code>gitweb</code>):</p> <ol> <li>Edit <code>.git/description</code> to contain the repository's name.</li> <li>Save the file.</li> </ol> <h2>Repository Directory</h2> <p>Git does not reference the name of the directory containing the repository, as used by <code>git clone master child</code>, so we can simply rename it:</p> <ol> <li>Open a command prompt (or file manager window).</li> <li>Change to the directory that contains the repository directory (i.e., do not go into the repository directory itself).</li> <li>Rename the directory (e.g., using <code>mv</code> from the command line or the <code>F2</code> hotkey from a GUI).</li> </ol> <h2>Remote Repository</h2> <p>Rename a remote repository as follows:</p> <ol> <li>Go to the remote host (e.g., <a href="https://github.com/User/project" rel="noreferrer">https://github.com/User/project</a>).</li> <li>Follow the host's instructions to rename the project (will differ from host to host, but usually <strong>Settings</strong> is a good starting point).</li> <li>Go to your local repository directory (i.e., open a command prompt and change to the repository's directory).</li> <li>Determine the new URL (e.g., <code>git@github.com:User/project-new.git</code>)</li> <li><p>Set the new URL using git:</p> <pre><code>git remote set-url origin git@github.com:User/project-new.git </code></pre></li> </ol>
    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. 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.
    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