2026-01-24

git commit으로 변경 기록

커밋 메시지와 기록 흐름을 간단히 정리합니다.

Rhio Kim

Rhio Kim

CEO

#git#commit

Page reactions

Leave a quick reaction to this shorts.

반응을 불러오는 중...

!!steps

!duration 180.0

!

_10
# 변경사항 스테이징 후 커밋
_10
$ git add .
_10
$ git commit -m "Update documentation"
_10
[main 1a2b3c4] Update documentation
_10
2 files changed, 15 insertions(+), 3 deletions(-)

!!steps

!duration 240.0

!

_10
# 마지막 커밋 수정
_10
$ git commit --amend -m "Fix typo in docs"
_10
[main 5d6e7f8] Fix typo in docs
_10
Date: Mon Apr 10 14:30:00 2023 +0900
_10
1 file changed, 1 insertion(+), 1 deletion(-)

!!steps

!duration 300.0

!

_10
# 대화형 모드로 커밋 메시지 작성
_10
$ git commit
_10
# 편집기에 커밋 메시지 입력 후 저장 종료
_10
[main 8e9f0a1] Refactor API module
_10
5 files changed, 87 insertions(+), 45 deletions(-)

!!steps

!duration 240.0

!

_10
# 선택적 스테이징 후 커밋
_10
$ git add src/app.js
_10
$ git commit -m "Update application logic"
_10
[main a1b2c3d] Update application logic
_10
1 file changed, 12 insertions(+), 4 deletions(-)

!!steps

!duration 180.0

!

_10
# 변경사항 없이 메시지만 기록
_10
$ git commit --allow-empty -m "Trigger deployment"
_10
[main f5g6h7i] Trigger deployment

!!steps

!duration 240.0

!

_10
# 커밋 상세 정보 출력
_10
$ git show HEAD
_10
commit 1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p
_10
Author: John Doe <john@example.com>
_10
Date: Mon Apr 10 14:30:00 2023 +0900
_10
_10
Update documentation
_10
_10
diff --git a/README.md b/README.md
_10
...