[英]How to clone git repo on private server to local machine via ssh with key?
[英]Clone an git repo to an offline machine
我想將git repo克隆到脫機VM(Debian)。 我可以通過具有Internet訪問權限的本地計算機(Mac)進入離線VM。 如何將git repo克隆到該脫機VM?
只是將repo文件夾scp到VM目錄是否有效? 喜歡:
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
請幫忙。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.