git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Hudec <bulb@ucw.cz>
To: Matt Seitz <seitz@neopathnetworks.com>
Cc: git@vger.kernel.org
Subject: Re: How to remove invalid remote repository
Date: Tue, 5 Jun 2007 22:14:57 +0200	[thread overview]
Message-ID: <20070605201457.GB3240@efreet.light.src> (raw)
In-Reply-To: <8A00BB77B01133479F4A56D932A1132202906FD8@EX-401.mail.navisite.com>

[-- Attachment #1: Type: text/plain, Size: 1160 bytes --]

On Tue, Jun 05, 2007 at 14:41:04 -0500, Matt Seitz wrote:
> I mistakenly entered the wrong directory name for "git remote add" (I
> entered the working tree directory name instead of the ".git" directory
> name). 

There does not seem to be any 'git remote remove'. So you'll do it by
changing the config. Either with git-config, or by editing .git/config (it
*IS* meant to be hand-edited).

> [...]
> So, how can I remove the incorrect remote repository reference and
> replace it with a correct one?
> 
> [root@demo5 etc]# git config -l
> [...]
> remote.root-etc.url=/root/git/etc
                      ^^^^^^^^^^^^^
This is the URL. You can simply fix it either with 
    git-config remote.root-etc.url /root/git/etc/.git
or by editing
.git/config

> remote.root-etc.fetch=+refs/heads/*:refs/remotes/root-etc/*

The section corresponding to these two entries in .git/config looks like:

[remote "root-etc"]
url = /root/git/etc
fetch = +refs/heads/*:refs/remotes/root-etc/*

You can tweak it to your heart's content. The documentation is in man pages
of git-config and git-fetch.

-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-06-05 20:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8A00BB77B01133479F4A56D932A1132202906FD8@EX-401.mail.navisite. com>
2007-06-05 19:41 ` How to remove invalid remote repository Matt Seitz
2007-06-05 20:14   ` Jan Hudec [this message]
2007-06-05 20:18   ` Linus Torvalds
2007-06-05 20:57     ` Matt Seitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070605201457.GB3240@efreet.light.src \
    --to=bulb@ucw.cz \
    --cc=git@vger.kernel.org \
    --cc=seitz@neopathnetworks.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).