OTHER·중요도 6·2026. 06. 16.·Dev.to

git reflog: Recover Commits You Thought Were Gone Forever

── KO ──────────────────

git reflog를 사용하여 잃어버린 커밋을 복구하는 방법을 설명합니다.

이 기사에서는 git reflog의 사용법에 대해 설명하고, 잃어버린 커밋을 복구하는 방법을 안내합니다. git reflog는 HEAD가 가리켰던 모든 위치를 기록하고 있어, 실수로 이전 커밋을 잃어버렸더라도 이를 복원할 수 있도록 돕습니다. 간단한 예제를 통해 git reset 명령어의 잘못된 사용 후 복원의 과정을 보여줍니다.


── EN ──────────────────

This article explains how to recover lost commits using git reflog.

The article discusses the usage of git reflog and provides guidance on how to recover lost commits. Git reflog records every position that HEAD has pointed to, which allows users to restore their work even after mistakenly losing commits. A simple example demonstrates how to restore a commit after a wrong usage of the git reset command.

원문 보기 →목록으로