LoginSignup
37
18

More than 3 years have passed since last update.

ディレクトリ名を指定してクローンする方法

Posted at
  • 環境
    • Windows10
    • git version 2.18.0.windows.1

参考 : git cloneしてきたプロジェクトの名前を変えてクローンしてくる方法 - Qiita

ディレクトリ名を指定しないとリポジトリ名になる

$ cd {クローンしたい場所}
$ git clone https://github.com/user/{リポジトリ名}.git
$ ls
{リポジトリ名}

ディレクトリ名を指定すると指定したディレクトリ名になる

$ cd {クローンしたい場所}
$ git clone https://github.com/user/{リポジトリ名}.git {ディレクトリ名}
$ ls
{ディレクトリ名}
37
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
37
18