最終更新:2017-06-27 (火) 15:18:58 (2494d)
git clone
Top / git clone
https://git-scm.com/docs/git-clone
- git clone {repo} - 既存のリポジトリの複製を作る
- .gitと同じ名前のディレクトリが作成される
- git clone {repo} {dir} - ディレクトリ名を指定
形式
- git://
- http(s)://
- user@server:/path.git
メモ
- git clone -b <ブランチ> - 特定のブランチ・タグだけ
- git clone --depth 1 - 最新の状態だけ取得