Git入門 その3 / git clone
環境 git version 1.8.3.1
■ git clone
$ git clone <repo> <direcotry>
このとrき
例)
# ローカル $ git clone ~/repo/myproject.git . # http $ git clone http://example.com/repo/myproject.git localdir # ssh $ git clone ssh://hoge@example.com/path/to/myproject.git ~/myproject
イメージ
+--------------------+
+----| リモートリポジトリ |-------+
| +--------------------+ |
| |
clone clone
| |
v v
+--------------------+ +----------------------+
| ローカルリポジトリ | | ローカルリポジトリ |
+--------------------+ +----------------------+
<<ステージングエリア>>
+--------------------+ +----------------------+
|ローカルディレクトリ| | ローカルディレクトリ |
+--------------------+ +----------------------+
takafumi-s.hatenablog.com