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

Re: Newbie questions about moving around repositories

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jun 15, 2007, 21:58 UTC
Message-ID
<20070615215838.GA6785@steel.home>
In-Reply-To
<1b5a37350706151019u2bf81e81me05d13ea9bf40591@mail.gmail.com>
Ed Schofield, Fri, Jun 15, 2007 19:19:58 +0200:
Show 14 quoted lines
> On 6/15/07, Alex Riesen <raa.lkml@gmail.com> wrote:
> >On 6/15/07, Ed Schofield <edschofield@gmail.com> wrote:
> >> 1. I would like to move my repository (including all branches) from
> >> directory A to a directory B on a different filesystem.
> >> [snip]
> >
> >Just copy it.
> >[snip]
> >... but fix that .git/objects/info/alternates files in the repos left to
> >point to the new location of the moved directory.
> 
> 
> Thanks, Alex! Changing this and .git/branches/origin worked a treat.
> 
.git/branches is obsoleted. Branch configuration is in .git/config now
Previous: Ed Schofield
Message 4 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.