IT/GIT

[Git] Git There is no tracking information for the current branch. 문제 해결 방법

코집사 2024. 7. 3. 13:30
반응형

VSCode에서 git을 연동하여 AWS CodeCommit에 있는 코드들을 가져오려고 pull을 당기니, There is no tracking information for the current branch. 에러가 발생했다.

 

git pull --tags
> git pull --tags
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> dev

 

이 문제가 발생했는데, 전반적인 문제와는 좀 달랐다. 기존에 소스가 있었던 것도 아니고 remote add origin을 한 후에 pull로 당기려고 하니 발생했었다.

 

 

 

그래서, Visual Studio Code에서 [Source Control]로 이동한 다음, 위의 사진에 [Checkout to...]를 눌러 브랜치를 선택하여 체크아웃을 받았다.

 

그 후에, 수정된 것에 대한 pull을 다시 하니 정상적으로 pull이 받아졌다.

 

 

반응형