* description : Eclipse에서 강제로 Pull OR Update 하기 * author : 와프 * email : iyyeo@repia.com * lastupdate : 2021-05-13 ===== 상황 ===== 사용 환경 : Eclipse Platform \\ \\ * 이클립스에서 git Pull을 하였을 경우에 master branch와 버전이 다르거나 수정하였을 때 오류가 나는 경우가 있는데, \\ * 이때 변경한 사항을 초기화 하고 master branch로 Pull 하는 경우에 쓰인다.\\ {{:wiki:eclipse:gitforce:01.png?400|}}\\ \\ \\ ===== 조치 ===== 1. 상단 메뉴에서, Window > Show View> Other 클릭\\ \\ 2. 'type filter text'란에 'Git Repositories'를 입력 및 'Open' 버튼 클릭\\ \\ 3. 하단에 생성된 'Git Repositories' 창에서 Git Respositories > 프로젝트명 > Branches > Local > master 에서 마우스 오른쪽 'reset' 클릭\\ {{:wiki:eclipse:gitforce:02.png?400|}}\\ \\ 4. 'Reset Type'란에서 'Hard'클릭 후 'Finish' 클릭 (주의 : 수정했던 변경사항이 master branch로 초기화 됌)\\ {{:wiki:eclipse:gitforce:03.png?400|}}\\ \\ 5. 왼쪽 프로젝트명에서 마우스 오른쪽 누르고 'Pull' 선택\\ \\ ==== 커맨드 ==== cd 프로젝트 디렉토리 git reset --hard git pull \\ === 주의 === :!: 수정했던 변경사항이 master branch로 초기화 됩니다. ===== 출처 ===== [[https://yard.tistory.com/entry/eclipse-git-overwrite-update|eclipse git 강제 overwrite update]]\\ \\ {{tag>와프 git 강제 pull 강제pull 강제update 업데이트 강제업데이트 git conflict gitconflict}}