remote branch 로 local branch 만들기

Max Kang·2022년 11월 27일
0

git fetch -all

git branch -v -a

remotes 는 빼줘도 됩니다.
git switch -c <local branch name> <remote branch name>
Ex. git switch -c test-branch origin/external-branch

이렇게 되면, origin/external-branch 를 reference한 test-branch 가 로컬환경에서 생성됩니다.

or

git checkout --track [remote branch name] 을 통해 동일하게 생성 가능합니다.

profile
Software Engineer

0개의 댓글