git remote update << 리모트 갱신 Fetching origin remote: Enumerating objects: 18, done. remote: Counting objects: 100% (18/18), done. remote: Compressing objects: 100% (8/8), done. remote: Total 10 (delta 6), reused 5 (delta 1), pack-reused 0 Unpacking objects: 100% (10/10), done. From [git url] * [new branch] branchName1 -> origin/branchName1 git branch << 로컬에 있는 브랜치 조회 * master git branch -a << 로컬과 리모트에 있는 브랜치 모두 조회 * master remotes/origin/branchName1 remotes/origin/master git checkout -t remotes/origin/branchName1 << 리모트에 있는 브랜치를 가져오는 것과 동시에 체크아웃 수행 Switched to a new branch 'branchName1' Branch 'branchName1' set up to track remote branch 'branchName1' from 'origin'. git branch << 리모트에 있는 브랜치를 가져와서 체크아웃되어 있는 상태 조회 * branchName1 master |
형상관리