Move git init code into fs-db code