2026-01-24

git show로 커밋 확인

커밋 상세 내용을 확인하는 show 기본 흐름입니다.

Rhio Kim

Rhio Kim

CEO

#git#show

Page reactions

Leave a quick reaction to this shorts.

반응을 불러오는 중...

!!steps

!duration 180.0

!

_15
# 가장 최근 커밋의 상세 정보를 확인
_15
$ git show
_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

!

_17
# 특정 커밋 해시의 상세 정보를 확인
_17
$ git show abc1234
_17
commit abc1234def5678901234567890abcdef12345678
_17
Author: Another Dev <another.dev@example.com>
_17
Date: Sun Apr 9 10:15:30 2023 +0900
_17
_17
Add new feature
_17
_17
diff --git a/feature.txt b/feature.txt
_17
new file mode 100644
_17
index 0000000..f75ba05
_17
--- /dev/null
_17
+++ b/feature.txt
_17
@@ -0,0 +1,3 @@
_17
+This is a new feature.
_17
+It does something cool.
_17
+Enjoy!

!!steps

!duration 180.0

!

_10
# 특정 파일의 최근 변경 내역을 확인
_10
$ git show HEAD:example.txt
_10
hello world
_10
This is a new line
_10
_10
# 이전 버전의 파일 내용을 확인
_10
$ git show HEAD~1:example.txt
_10
hello world

!!steps

!duration 240.0

!

_21
# 특정 태그의 정보를 확인
_21
$ git show v1.0
_21
tag v1.0
_21
Tagger: Your Name <your.email@example.com>
_21
Date: Tue Apr 11 09:00:00 2023 +0900
_21
_21
Version 1.0 release
_21
_21
commit 1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r9s0
_21
Author: Your Name <your.email@example.com>
_21
Date: Tue Apr 11 08:55:30 2023 +0900
_21
_21
Prepare for v1.0 release
_21
_21
diff --git a/version.txt b/version.txt
_21
index 0ec25f7..d3827e7 100644
_21
--- a/version.txt
_21
+++ b/version.txt
_21
@@-1 +1 @@
_21
-v0.9
_21
+v1.0

!!steps

!duration 180.0

!

_10
# 최근 커밋의 변경 내용을 간단히 확인
_10
$ git show --stat
_10
commit 6f3e247a9d7e9a4b13e0d24b8a7f3d2e1f2c3b4a
_10
Author: Your Name <your.email@example.com>
_10
Date: Mon Apr 10 15:30:45 2023 +0900
_10
_10
Update example.txt
_10
_10
example.txt | 1 +
_10
1 file changed, 1 insertion(+)