프로그래밍/형상관리
[GIT] git pull no tracking info 에러
엘레멘탈키스
2017. 2. 8. 20:04
728x90
728x90
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> hotfix
해결
- 업스트림을 지정해줘야되는데 어디서 pull을 떙겨야 될지 몰라서 나오는 에러다.
- pull 이외에도 여러 명령어들이 remote 대상 브랜치를 지정해줘야 한다.
- 보통은 작업 브랜치가 있으므로 해당 local 브랜치와 remote 브랜치를 아래 명령어로 맞춰주면 대상 remote 브랜치를 번거롭게 쓰지 않고 사용할 수 있다.
git branch --set-upstream-to=origin/test
728x90
반응형