I do this too many times. This post is a reference to the solution.

http://stackoverflow.com/questions/359424/detach-subdirectory-into-separate-git-repository/17864475#17864475

Ced