可以使用以下命令来克隆远程仓库:
git clone <remote_repository_url>
其中,<remote_repository_url>
是远程仓库的 URL。例如:
git clone https://github.com/username/repo.git
这将把远程仓库 repo
克隆到当前目录下的一个名为 repo
的文件夹中。如果需要指定新的目录名称,可以在命令后面添加要创建的目录名称:
git clone https://github.com/username/repo.git new_dir_name