Error Solving

Github repository의 특정 branch만 clone 하기

굥깡 2023. 6. 19. 18:13
728x90

suboptimal.....🙄🙄

git clone -b (branch_name) --single-branch https://github.com/어쩌구/저쩌구.git

원래는 다른 branch가 pull 되어 있어서 branch를 바꿔서 pull & push 할 방법을 찾다가

어차피 이미 pull 되어 있는 branch를 다시 업데이트할 계획이 없기 때문에 아예 지우고 branch를 특정해서 새로 clone 하기로 함