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

Newbie questions about moving around repositories

From
ESEd Schofield <edschofield@gmail.com>
Date
Jun 15, 2007, 13:52 UTC
Message-ID
<1b5a37350706150652y7710c380l79e785cba8f6b02e@mail.gmail.com>
Hi all,

I've recently started using git to manage my own patchsets for a public CVS repository that I don't have write access to. I have a couple of newbie questions, please:

1. I would like to move my repository (including all branches) from
directory A to a directory B on a different filesystem. Can I use
git-clone for this? It seems that git-clone creates remote-tracking
branches, but I want to keep all of the branches as local branches so
I can remove the original repository.
2. I can't just move the entire directory A, because I get

Error in startup script: error: object directory A/../A-cvs-git/.git/objects does not exist; check .git/objects/info/alternates

I think I originally created the repository by cloning from my A-cvs-git/ directory with git-clone --shared, but I don't quite remember. So I suppose I want a way to stop using the alternates mechanism and make my repository self-contained in one directory. Is this possible? Will I then be free to move the directory?

I'd appreciate any advice!
-- Ed
Next: Alex Riesen
Message 1 of 4 in “Newbie questions about moving around repositories”
  1. Ed SchofieldJun 15, 2007
  2. Alex RiesenJun 15, 2007
  3. Ed SchofieldJun 15, 2007
  4. Alex RiesenJun 15, 2007

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.