【メモ】gitでremoteブランチとlocalブランチの対応付けを行う

2016-12-19   treby   技術メモ   このエントリーをはてなブックマークに追加
masterブランチ上で git pull origin しても

$ git pull origin
You asked to pull from the remote 'origin', but did not specify
a branch. Because this is not the default configured remote
for your current branch, you must specify a branch on the command line.

となってしまう場合。

$ git branch --set-upstream-to=origin/master

みたくした。
[git]ローカルブランチがどのリモートブランチを追跡してるのか確認する方法