https://hidelookit.tistory.com/244
[Git] 로컬 파일 강제로 덮어쓰기
다른 환경에서 작업을 하고 Git에 push를 하면 기존에 사용하던 환경에서는 다시 pull을 받아와야 한다. 나는 이전까지 기존에 사용하던 폴더를 삭제하고 다시 clone을 하는 불편한 방식을 사용했었
hidelookit.tistory.com
git fetch --all
git reset --hard origin/master
'GIT' 카테고리의 다른 글
Exception caught during execution of merge command. org.eclipse.jgit.errors.MissingObjectException: Missing unknown d422~~~~ (0) | 2022.10.02 |
---|---|
스프링부트 프로젝트 github에서 내려받기 (0) | 2022.09.12 |
원격저장소 커밋 되돌리기 (0) | 2022.09.12 |
.gitignore 작성 방법 (0) | 2022.09.12 |
github 폴더, 파일 삭제하는 방법 (0) | 2022.08.06 |