[Git] Git pull 안될 때

미랭군·2023년 8월 9일
0
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> main

git pull시에 이런 메세지가 뜨면서 안되는 경우가 있다.

바로 메세지에서도 확인할 수 있듯이 이렇게 입력하면 해결된다.

git branch --set-upstream-to=origin/<branch> main

이 부분에 추적하고 싶은 remote branch의 name을 넣어주면 된다.

profile
개발자

0개의 댓글