21
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

git clone でルートフォルダ名の変更

Last updated at Posted at 2018-10-09

はじめに

プロジェクトをクローンしてくるときに、そのままクローンするとクローン元のフォルダ名のままになるので、自分で任意のフォルダ名にしたいときのTipsです。

やり方

そのままクローンした場合

terminal
~$ git clone [クローン元のURL]
// これだとクローン元のフォルダ名のままになってしまいます

任意のフォルダ名に変更したい場合

terminal
~$ git clone [クローン元のURL] sample
// これで sample という名前にリネームしてくれます
21
13
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
21
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?