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]
을 통해 동일하게 생성 가능합니다.