Infra/Git9 Git remote branch 가져오기 https://cjh5414.github.io/get-git-remote-branch/ Git remote branch 가져오기 Jihun's Development Blog cjh5414.github.io 2022. 6. 23. 삭제한 stash 복구하는 방법 git 변경사항 백업 + 현재 상태에서 변경사항 임시로 지워두기 git stash 백업해뒀던 변경사항 살리기 git stash pop Ref. https://backlog.com/git-tutorial/kr/reference/stash.html 2022. 6. 20. Git one-sided merge git merge 시 conflict가 발생할 때, 한쪽 branch를 그대로 따라가고 싶은 경우 (일방적으로 덮어쓰고 싶은 경우) git merge -Xours targetBranch // 현재 브랜치 기준으로 덮어씀 ( ours 우리 소스를 쓸게! use our sources) git merge -Xtheirs targetBranch // 타겟 브랜치 기준으로 덮어씀 ( theirs 걔네 소스를 쓸게! use thier sources) Ref. https://engineer135.tistory.com/166 git merge 덮어쓰기(overwrite) 머지할때 한쪽 소스로 덮어쓰는 법 git merge -Xours targetBranch 현재 브랜치 기준으로 덮어씀 ( ours 우리 소스를 쓸게! .. 2022. 6. 7. git 변경 사항 확인하기 git status를 통해 현재 상태를 확인한다 git status 현재 branch의 가장 최근 commit과 현재 상태와의 difference를 보여준다. git diff Ref. https://recoveryman.tistory.com/267 [깃허브(Github)] 10. 변경된 내용 확인 이 변경된 내용 확인 하는 명령어는 파일이 수정됬습니다. 라는 사실만을 알려주는게 아니라, 어떤 파일의 어떤 부분이 수정되었습니다. 라고 알려주는 명령어 입니다. 그래서 Staging Area 로 add recoveryman.tistory.com 2022. 5. 20. 이전 1 2 3 다음