git diff를 사용하면 수정된 라인과 수정한 라인을 비교할 수 있다.(color 옵션 키기)
git diff --color-words : 수정된 사항을 라인이 아닌 단어로 볼 수 있다.
git diff --word-diff : --color-words와 비슷한 포맷으로 출력되지만 지워지고 추가된 단어를 좀 더 명시적으로 표시해준다.
git difftool 설정
- git config --global diff.tool vimdiff
- git config --global difftool.prompt false
- :qa 모든 창 닫고 vi 종료
참고
https://blog.outsider.ne.kr/1011
git diff 에서 변경된 부분을 더 명확하게 보는 방법 :: Outsider's Dev Story
`git diff`는 다들 알다시피 두 커밋간이나 HEAD와 워킹 디렉토리의 차이점을 보여주는 명령어이다. 일반적으로 `git diff` 명령어를 사용하면 위처럼 수정된 라인과 수정한 라인을 비교해 볼 수 있다.
blog.outsider.ne.kr
https://goodtogreate.tistory.com/entry/git-difftool-%EC%82%AC%EC%9A%A9%EB%B2%95
git difftool 사용법
git difftool 사용법 git mergetool 로 병합을 수행할 시 conflict문제가 발생하면 아래와 같이 해결한다. git difftool 설정 git config --global diff.tool vimdiff git config --global difftool.prompt false..
goodtogreate.tistory.com
'Git' 카테고리의 다른 글
git reset (0) | 2020.11.14 |
---|---|
git log (0) | 2020.11.14 |
pr을 완료하지않고 원격에 다시 push하면 해당 pr에 commit 내용들이 포함된다. (0) | 2020.11.14 |
명령어 자동화 함수 만들기 (0) | 2020.10.12 |
–allow-unrelated-histories 옵션 (0) | 2020.09.29 |