develog

[git] git pull 시 오류: There is no tracking information for the current branch. 본문

카테고리 없음

[git] git pull 시 오류: There is no tracking information for the current branch.

냐옴 2023. 1. 13. 10:03

 

git pull 시 아래 오류가 발생

$ git pull
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> master

 

master 브랜치를 upstream 으로 변경한다

$ git branch --set-upstream-to=origin/master master
branch 'master' set up to track 'origin/master'.
Comments