LoginSignup
3
3

More than 3 years have passed since last update.

github 違うブランチのリモートをPULLしたいときのメモ

Posted at

リモートブランチをプルしたい

feat/test-01 みたいなブランチがあったとし、そのブランチをフェッチしてからプルする際のメモ
git pull origin pullしたいリモートブランチ名:ローカルブランチ名

で例でいえば
git pull origin feat/test-01:feat/test-01
とやるとできる

どんな例でおきた

仕事ようのPC,自宅のPC分けており
仕事用のPCで開発ぼこぼこしたあとにリモートにえいや〜とプッシュをし、
それを「さて仕事やるか、お」という感じのノリで自宅PCを開いてやるときに
最新の状態にする必要があるが、その際によくおきていた(毎回面倒な時は、ブランチを新しく作り直していた)

gitは奥が深い(もっと勉強します、、、汗)

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