git remote branch checkout

mhlee·2021년 7월 1일
0

1. 상황

origin의 디폴트 branch가 아닌, 특정 branch로 checkout을 해야 하는경우가 있다.

2. 방법

# git remote 정보 갱신
git remote update

# remote branch 조회
git branch -r

# checkout
git checkout -t <remote-branch>
profile
삽질하는 개발자

0개의 댓글