git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Moving git

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Oct 16, 2009, 16:11 UTC
Message-ID
<vpqbpk71fox.fsf@bauges.imag.fr>
In-Reply-To
<8440EA2C12E50645A68C4AA988716651244654@SERVER.webdezign.local>
"Richard" <richard@webdezign.co.uk> writes:
Show 17 quoted lines
> Hi Matthieu,
>
>
> Thanks for replying.
>
> Basically, I used git-svn to import from git. I'm trying to get rid of
> the origin branch. (I probably should have used the no-metdata switch).
>
> The command I used was
>
> git branch prune origin
>
> I tried "git remote rm origin" which worked on my local win32 machine,
> but the linux server I was working on did not recognise "git remote rm".
>
> I'm pretty sure git stores the current git directory as I've seen the
> --git-dir and --work-tree environment variables.

Git doesn't store them by default for the current repository. "git rev-parse --git-dir" guesses where your .git/ directory is (looking for ./.git/, ../.git, and so on). OTOH, Git stores URLs for remote repositories (see .git/config).

> Plus I also noticed on msysgit gives " Local uncommitted changes,
> not checked in to index" sometimes, when I move the directory.

I don't know msysgit, but I guess you'll have problems if your repository is on a FAT filesystem. Is it the case?

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: RichardNext: Santi Béjar
Message 4 of 11 in “Moving git”
  1. Richard LeeOct 16, 2009
  2. Matthieu MoyOct 16, 2009
  3. RichardOct 16, 2009
  4. Matthieu MoyOct 16, 2009
  5. Santi BéjarOct 16, 2009
  6. Richard LeeOct 16, 2009
  7. Matthieu MoyOct 16, 2009
  8. Todd ZullingerOct 16, 2009
  9. rhleeOct 19, 2009
  10. Daniel BarkalowOct 20, 2009
  11. RichardOct 20, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.