배포/빌드 서버 등에 계속해서 최근 항목만을 가져오는 등의 경우에 사용 할 수 있다.
로컬에 있는 모든 내용을 덮어쓰려는 경우
git fetch --all
git reset --hard origin/mastermaster 아닌 특정 branch 지정 사용 시
git reset --hard origin/<branch_name>현재 로컬 커밋을 유지(branch로 만들어 두고 덮어쓰기)
git checkout master
git branch <branch name>
git fetch --all
git reset --hard origin/master'버전관리' 카테고리의 다른 글
| Git Branch 목록을 보고 싶을 때. branch list 보기 (0) | 2021.11.15 |
|---|---|
| Git reset 작업 취소, 되돌리기 (0) | 2015.02.22 |
| Git branch 이해 (0) | 2015.02.21 |
| Git branch 관리. 가지치기 (0) | 2015.02.03 |
| Git init, commit, remote, pull, push (0) | 2015.02.02 |


