あるgitリポジトリの特定のディレクトリに別のgitリポジトリのコミット履歴をそのままとりこみたいときのやり方
git remote add -f Bproject /path/to/B
git merge -s ours --no-commit Bproject/master
git read-tree --prefix=dir-B/ -u Bproject/master
git commit -m "Merge B project as our subdirectory"
git pull -s subtree Bproject master # なくてもいい