【Git】リモートブランチを取得する

リモートブランチ確認

git branch -a

対象のリモートブランを取得

[remote branch name]と[local branch name]はそれぞれ、my-app origin/my-appといった形で指定する。

git fetch
git checkout -b [remote branch name] [local branch name]

ローカルブランチ確認

git branch

参考

【Git・Github】ローカルにないリモートブランチを取り込む方法

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です