Git
[Git] 강제 pull 하기
clolee
2023. 11. 2. 17:19
Git 강제 pull
1) remote repository에서 최신 commit 정보 가져와
2) head를 옮긴 후
3)받아오기
1. remote repository에서 최신 commit 정보 가져오기
git fetch --all
2. head를 해당 repository branch의 최신 commit을 가리키게 하기
git reset --hard origin/<branchname>
git reset --hard origin/master
3. local에 commit 을 병합
git pull
참고 :