반응형
Recent Posts
Recent Comments
«   2025/12   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Today
Total
관리 메뉴

꿈꾸는 개발자의 devLog

[git/gitbash] git pull error 본문

Computer Science

[git/gitbash] git pull error

덩화 2023. 12. 6. 00:01
반응형

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이 제대로 실행됨 ! 

 

Ref : https://potensj.tistory.com/90

반응형
Comments