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

Re: split up a repository

From
Avery Pennarun <apenwarr@gmail.com>
Date
Mar 3, 2010, 01:40 UTC
Message-ID
<32541b131003021740n32535fbbh802af418ea0898aa@mail.gmail.com>
In-Reply-To
<20100303002132.5df20326@gmail.com>
On Tue, Mar 2, 2010 at 6:21 PM, Levente Kovacs <leventelist@gmail.com> wrote:
Show 5 quoted lines
> On Tue, 2 Mar 2010 11:40:41 +0100
> Ok. Really newbie question here. Just before I start to mess up my
> repositories. I've cloned the git-subtree, and the install script would put
> the script into /usr/lib/git-core. Is there any way to install the script
> somewhere under /usr/local ?

The actual function of git-subtree is one single file. You can just copy it to wherever you like. Personally, I add the git-subtree source directory to my PATH from .bashrc... but I guess I'm special because I also change my version of git-subtree a lot :)

Make sure to run 'make test' first so you know it's working on your computer.

And I'll second Sverre's suggestion to *always* back up your repository before doing weird stuff (although git-subtree is designed to refuse to overwrite existing branches, and nobody has ever reported it damaging anything).

Have fun,
Avery
Previous: Sverre RabbelierNext: Bill Lear
Message 6 of 8 in “split up a repository”
  1. Kovacs, LeventeMar 2, 2010
  2. Chris PackhamMar 2, 2010
  3. Sverre RabbelierMar 2, 2010
  4. Levente KovacsMar 2, 2010
  5. Sverre RabbelierMar 2, 2010
  6. Avery PennarunMar 3, 2010
  7. Bill LearMar 3, 2010
  8. Avery PennarunMar 3, 2010

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.