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