꿈꾸는 개발자의 devLog
[git/gitbash] git pull error 본문
반응형
github 에서 파일을 수정하고, git bash에서
"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> master
이러한 오류의 이유는 github에서 branch가 여러개인데, git pull 명령어 진행 시 branch를 명명하지 않아서 발생하는
나름의 경고 메시지라고 보면 됨
먼저, 해당 git bash에서 현재 작업 중인 github의 branch를 확인하기 위해 아래와 같은 명령어 실행
git branch -v
그럼 아래와 같이 현재 branch들을 보여줄 것임

그런 다음에 ! 이제 branch를 명명하면서 pull 재 진행
git pull origin master
그럼 이전과 같이 발생했던 경고가 보이지 않고 pull이 제대로 실행됨 !
반응형
'Computer Science' 카테고리의 다른 글
| [Computer] 작업 스케줄러 배치 설정 (0) | 2024.06.25 |
|---|---|
| [Computer] jupyter notebook 파일 .py로 변환 (0) | 2024.06.25 |
| [Pytorch] CIFAR10 이미지 학습 예제 (0) | 2023.11.29 |
| [Computer] Pytorch 오류 - can't convert cuda:0 device type tensor to numpy 오류 해결법 (0) | 2023.11.29 |
| [Computer] SSH 원격 설정 및 연결, Anaconda 실행 (0) | 2023.06.23 |
Comments