0
0

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.

git-tip集:ローカルにブランチをサーバから取得

Last updated at Posted at 2017-07-06

Gitメモ

やりたいことはlocalにremoteのブランチを持ってきたい。
今まではこんな感じでやったが、もっと便利にしたくて、

git branch 'BRANCH_NAME'
git pull origin 'BRANCH_NAME'

中々スマートじゃない気がして、
調べたらこんな感じができる

git fetch
git checkout test

割と大丈夫そうなので、メモしました

参考:https://stackoverflow.com/questions/1783405/how-do-i-check-out-a-remote-git-branch

0
0
3

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?