問題一覧に戻る
中級リモート操作
問題29: git clone - リポジトリのクローン

git cloneコマンドでリモートリポジトリをローカルにコピーする方法を学びます。これはGitを使った協働作業の第一歩です。

# リポジトリをクローン
git https://github.com/example/project.git

# クローンを確認
cd project
ls -la

# リモートを確認
git remote -v