I don’t plan to do it but just by curiosity, can we deploy to remote staging env. by using our local Git Repo? I mean, if I don’t have a remote Repo on Github or Bitbucket, could I use the local one?
Like put a local path in wordpress.yml file
Hope this question has value for someone.
I might be wrong, but I don’t think that will work. When deploying, the git repository is pulled using git, there is no file transfer (other than files you set to transfer, like compiled theme asset files). Every deploy a git pull is done to get the latest code.
You can always use a git repository like Bitbucket to keep projects private but on an external server.
Won’t work without modifications as @kalenjohnson mentioned.
Ok thank you for your answers guys.