2026-01-24

git log로 기록 확인

커밋 히스토리를 확인하는 기본 로그 흐름입니다.

Rhio Kim

Rhio Kim

CEO

#git#log

Page reactions

Leave a quick reaction to this shorts.

반응을 불러오는 중...

!!steps

!duration 180.0

!

_19
# 기본적인 커밋 로그 확인
_19
$ git log
_19
commit 6f3e247a9d7e9a4b13e0d24b8a7f3d2e1f2c3b4a
_19
Author: Your Name <your.email@example.com>
_19
Date: Mon Apr 10 15:30:45 2023 +0900
_19
_19
Update example.txt
_19
_19
commit abc1234def5678901234567890abcdef12345678
_19
Author: Another Dev <another.dev@example.com>
_19
Date: Sun Apr 9 10:15:30 2023 +0900
_19
_19
Add new feature
_19
_19
commit 1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r9s0
_19
Author: Your Name <your.email@example.com>
_19
Date: Sat Apr 8 14:20:15 2023 +0900
_19
_19
Initial commit

!!steps

!duration 180.0

!

_10
# 한 줄로 간단히 로그 확인
_10
$ git log --oneline
_10
6f3e247 Update example.txt
_10
abc1234 Add new feature
_10
1a2b3c4 Initial commit

!!steps

!duration 300.0

!

_15
# 변경 내용을 포함한 상세 로그 확인
_15
$ git log -p
_15
commit 6f3e247a9d7e9a4b13e0d24b8a7f3d2e1f2c3b4a
_15
Author: Your Name <your.email@example.com>
_15
Date: Mon Apr 10 15:30:45 2023 +0900
_15
_15
Update example.txt
_15
_15
diff --git a/example.txt b/example.txt
_15
index 1f7391f..3b18e51 100644
_15
--- a/example.txt
_15
+++ b/example.txt
_15
@@ -1 +1,2 @@
_15
hello world
_15
+This is a new line

!!steps

!duration 240.0

!

_19
# 변경 통계 정보를 포함한 로그 확인
_19
$ git log --stat
_19
commit 6f3e247a9d7e9a4b13e0d24b8a7f3d2e1f2c3b4a
_19
Author: Your Name <your.email@example.com>
_19
Date: Mon Apr 10 15:30:45 2023 +0900
_19
_19
Update example.txt
_19
_19
example.txt | 1 +
_19
1 file changed, 1 insertion(+)
_19
_19
commit abc1234def5678901234567890abcdef12345678
_19
Author: Another Dev <another.dev@example.com>
_19
Date: Sun Apr 9 10:15:30 2023 +0900
_19
_19
Add new feature
_19
_19
feature.txt | 3 +++
_19
1 file changed, 3 insertions(+)

!!steps

!duration 180.0

!

_10
# 브랜치와 병합 히스토리를 그래프 형태로 확인
_10
$ git log --graph --oneline --all
_10
* 6f3e247 (HEAD -> main) Update example.txt
_10
* abc1234 Add new feature
_10
| * de5f678 (feature-branch) Add another feature
_10
|/
_10
* 1a2b3c4 Initial commit