You can create a base filesystem image with the code and tools checked out, then create a VM which uses that in a copy-on-write way