我們如何克隆一個回購協議是在本地目錄到遠程mchine目錄混帳克隆回購協議向遠程機器
machine1:/usr/rep/ -> clone this to machine2:/var/new_repo
究竟是什麼
EDIT1
我想實際的命令從機器創建克隆
EDIT2
我也嘗試了下面的git clone --bare [email protected]/usr/repo/var/repo /不知道是否有正確的方法做
EDIT3
這是EDIT2
You have no controlling tty and no DISPLAY. Cannot read passphrase. fatal: The remote end hung up unexpectedly ================================================Initialized empty Git repository in /var/repo/ DEBUG: remote_exec loop:$stderr: Initialized empty Git repository in /var/repo/ DEBUG: create_repoX loop: $stdout: DEBUG: create_repoX loop: $stderr: Initialized empty Git repository in /var/repo/ DEBUG: create_repoX loop: $exit: 32768
您如何提供訪問權限?推(服務器是遠程的)還是拉(服務器是本地的)? – Reactormonk 2012-03-21 13:02:18