nugawiki

./categories/dev-ops

git pull 강제 덮어쓰기

업데이트 2026-07-21 조회수

git pull 강제 덮어쓰기 (로컬 변경 폐기)

git fetch --all
git reset --hard origin/master
git pull

origin/main 등 원격 브랜치명에 맞게 변경. 로컬 커밋/변경은 삭제됨.

./comments