Clone the whole thing in the VM, extract the code, and put it in the source code repository (e.g. git).
After that, deploy to your computer, deploy to your virtual machine (if you cannot get another machine or you have the time and patience to reverse engineer the configuration of your cloned machine).
You can start the deployment by simply pulling the code from your virtual machine, but if you think your project can take longer, consider setting up a Continuous Integration environment and also put your VM configuration files in a git repository that you can recreate this in production (or hook your products in CI).
Krzysztof Hasiński
source share