2011-01-06 46 views

回答

8

你可以git clone它像任何git存儲庫。如果你的Git守護的設置,它是:

git clone git://your-imac/repoName 

如果沒有,你可以使用ssh:

git clone [email protected]:/path/to/your/repo 
+1

這樣做的第二部分將使您的工作從macbook回到imac。那會是'git remote add macbook username @ macbook:/ path/to/repo`,然後是`fetch`,`merge`等。 – ndim 2011-01-07 00:30:29

0

如果它訪問只需使用:

git clone 

否則只是複製了。 git文件夾。這應該足夠了。

0

Git是自包含的 - 只需複製存儲庫的內容就可以正常工作。

如果您可以通過SSH訪問當前所在的機器,則還可以簡單地使用git clone

+0

我會在複製之前克隆,因爲如果源git版本比目標git版本。 – fuzzyTew 2011-01-07 00:09:23

0

在Mac機器上: 使用終端轉到需要的文件夾。

  1. 打開終端

  2. 類型CD和拖動和下降端子夾。

  3. 你在哪裏,你要下載

  4. 使用命令相同的文件夾:

    cd <folder path of local machine> 
    git clone <url> 
    
    eg: Mac-mini: macuser$ cd /Users/macuser/Desktop/GIT_PROJ 
    Mac-mini:GIT_PROJ macuser$ git clone https://[email protected]/abcd/sample.git 
    
  5. 將信息庫下載到你的本地機器。

相關問題