Maybe I misunderstood your question, but wouldn't it be simpler if you copy/move the files from A to the git repo B and add the needed ones with git add?
UPDATE: From the git doc:
Cloning into an existing directory is only allowed if the directory is empty.