Git2git is a project mainly written in Shell, it's free.
A migrating tools from git repository to git repository with specific directory
I need a new repository which contains specific directories with history in existing repository. I make this tool.
$ cd git/existingrepository.git $ git2git.sh ${directory to migrate} ${branchname to save new commit object} $ git branch ${branchname to save new commit object}