Git 두 커밋간 diff 알아내는 방법

October 3, 2025
Git 두 커밋간 diff 알아내는 방법
Git 두 커밋간 diff 알아내는 방법

Git 두 커밋간 diff 알아내는 방법

Language
ko
Tags
Diff
Commit
Git
번역 대기
Authors
Jaewan Shin
Published
October 3, 2025
Use Original Cover Image
Type
Post
Children
git diff <older_commit> <newer_commit> > changes.diff
위와 같이 입력하면 된다. commit의 id를 확인하고 싶다면 아래 명령어를 입력하면 된다. 이때 유의해야하는 것은 id와 만들 파일명 사이에 > 가 꼭 들어가야 한다.
 
git log --oneline --graph