git
git 현재 트랙킹하는 브랜치 설정
ppp5500
2023. 9. 18. 09:52
vs code로 새로운 컴퓨터에서 원격 레포에 pull/push 하려고 하니 아래와 같은 오류가 발생했다.
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
머지할 브랜치가 특정되지 않았다는 것이므로 오류 메시지에서 친절하게 알려준 방법으로 pull을 하거나
git pull <remote> <branch>
이 레포에서 앞으로 어떤 브랜치로 머지할 것인지 설정할 수도 있다.
git branch --set-upstream-to=origin/<branch> main