반응형

git branch -a로 remote branch 안보이면 

1) git ls-remote origin 보이는지 확인후 보이면

2) git config --edit 후에 [remote "origin"] fetch=+refs/heads/*:refs/remotes/origin/* 로 변경

3) 수정확인: git config remote.origin.fetch

 

확인했더니 원래 아래처럼 되어있었고 수정후 정상동작함

[remote "origin"]
url = http://10.97.24.150:8099/csPortalGroup/csportalapi.git
fetch = refs/heads/master:refs/remotes/origin/master -> +refs/heads/*:refs/remotes/origin/

 

https://youngwonhan-family.tistory.com/entry/Git-Remote-%EB%B8%8C%EB%9E%9C%EC%B9%98-%EC%95%88%EB%B3%B4%EC%9D%BC-%EB%95%8C-%ED%95%B4%EA%B2%B0%EB%B0%A9%EB%B2%95

 

Git - Remote 브랜치 안보일 때 해결방법

remote 신규 브랜치 안보일 때 git branch -a 명령으로 remote에 생성한 신규 브런치가 안보일 때, git ls-remote origin 명령으로 확인한다. 신규 브랜치가 보이는지 확인한다. Config 수정 Config 수정은 아래 두

youngwonhan-family.tistory.com

 

반응형

+ Recent posts