Develop

[Git] pull 했을때 new remote branch가 없는 error 본문

웹 개발/Git

[Git] pull 했을때 new remote branch가 없는 error

개발 기록 2024. 2. 23. 15:38

 

 

remote - origin - fetch 의 경로 잘 확인하기 

 

pull 에서 계속 오류나길래 나는 git bash로도 해봤는데

 

원격저장소에 업데이트 되었는데 로컬에 안떴을 때 

git remote update

 

를 사용하면 된다해서 해봄

 

근데 결과는。。

 

 

(헷갈릴까봐 오타난 명령어는 모자이크 처리함)

 

그래서 

다시 이리저리 검색하다가

맨 위의 사진처럼 경로 수정해준다음 다시 pull 하니까 성공했다

 

깃헙에서 브랜치 만들고 pull 성공했는데도 switch to에 안보여서 혼났음。。


 

참고한 글

 

깃 명령어 참고

[GIT]내가 보려고 만든 GIT 사용법 (velog.io)

 

[GIT]내가 보려고 만든 GIT 사용법

mac OS가 카탈리나 이후로는 기본 shell이 zsh로 변경되었다./bin/bash : 혹시나 bash를 사용해야할 경우에는 이렇게 명령어를 입력하면 바꿔준다.깃 토큰 업데이트 : https://developer0809.tistory.com/m/148참고

velog.io

 

fetch 루트 참고

https://stackoverflow.com/questions/12762922/git-cannot-see-new-remote-branch

 

Git: Cannot see new remote branch

A colleague pushed a new remote branch to origin/dev/homepage and I cannot see it when I run: $ git branch -r I still see preexisting remote branches. I assume this is because my local remote r...

stackoverflow.com