There is no tracking information for the current branch. Please specify which branch you want to merge with. If you wish to set tracking information for this branch you can do so with:
環境
code:error.log
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> xxxxx
これなんのエラーだっけ(2020/06/05)
引数なしでgit pullしたときのエラー
code:ㅤ
git branch --set-upstream-to=origin/develop develop
branch 'develop' set up to track 'origin/develop'.
実行すると.git/configに以下の設定が追加されている
code:.git/config
remote = origin
merge = refs/heads/develop
upstreamを設定するとgit statusは以下のようになる
code:ㅤ
git status
On branch develop
Your branch is up to date with 'origin/develop'.
今作ったのブランチhotfixを確認する
code:ㅤ
git status
On branch hotfix
upstreamが設定されることによってどうなるのか?
pull, pushが引数無
参考
履歴
そろそろちゃんと調べる(2023/07/03)