1
1

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 5 years have passed since last update.

githubで特定のbranchをcloneする方法

1
Last updated at Posted at 2016-10-25

目的

・ローカルのフォルダAの下にRemote repositoryのbranchをcloneしたい

状況的にmasterはcloneしているだろうからそこで"$git branch"してみる.
そうすると,branchが色々でてくる.

origin/a
origin/b
origin/c/d

上記の3番目のbranchをcloneした場合は以下のようにする.

$ git clone -b < c/d >

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?