[英]Clone an git repo to an offline machine
I want to clone an git repo to an offline VM (Debian). 我想将git repo克隆到脱机VM(Debian)。 I can ssh into the offline VM via my local machine (Mac) which has internet access.
我可以通过具有Internet访问权限的本地计算机(Mac)进入离线VM。 How can I clone a git repo to that offline VM?
如何将git repo克隆到该脱机VM?
Does simply scp the repo folder to the VM directory works? 只是将repo文件夹scp到VM目录是否有效? Like:
喜欢:
local_machine$ git clone https://github.com/rstudio/shiny-server.git
local_machine$ scp ~/shiny-server VM_machine:
local_machine$ ssh VM_machine:
VM_machine$ mv ~/shiny-server ~/workspace
Please help. 请帮忙。
You can just clone
the repository in the VM from your local machine: 您可以从本地计算机在VM中
clone
存储库:
VM_machine$ git clone local_machine:~/shiny-server ~/workspace
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.