Git Error:There is no tracking information for the current branch.

1360 단어
gitpull을 실행할 때 현재 branch에 추적 정보가 없음을 알립니다.
$> 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  
If you wish to set tracking information for this branch you can do so with:
    git branch --set-upstream-to=origin/ localdev

이런 상황에 대해 두 가지 해결 방법이 있다. 예를 들어 localdev를 조작해야 한다. 하나는 원격 마스터를 직접 지정하는 것이다. (localdev는 현재 로컬 지점이고 마스터는 원격 메인 지점이다.)
git pull origin master 

또 다른 방법은 로컬 localdev를 원격 마스터로 지정한 다음pull로 가는 것이다.
$> git branch --set-upstream-to=origin/master localdev 
$> git pull

이렇게 하면'There is no tracking information for the current branch'라는 힌트가 다시는 나타나지 않을 것이다.
일을 끝내다

좋은 웹페이지 즐겨찾기