# moving self contained subdirectories from a project to another

1 messages from 2007-06-18 to 2007-06-18. Participants: Luca Barbato.
Thread: https://gitlist.dev/t/8637

## Luca Barbato, 2007-06-18 12:24

Subject: moving self contained subdirectories from a project to another
Message-ID: <46767979.2030303@gentoo.org>
URL: https://gitlist.dev/e/46767979.2030303%40gentoo.org

```
Lately I'm trying to move a subdirectory from one project to another,
both tracked in git.

This directory is currently duplicated in two different projects and my
plan was to remove it from those and make a library so it could be
shared between them.

Now, the simple way would be get a scratchpad branch, prune everything
but what I want, push to the library repo, make the projects use it.

There is already a script that automates this task? There are any
pitfalls I'm not considering?

lu

PS: keep me on CC since I'm not subscribed

-- 

Luca Barbato

Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero

```
