문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 | ||
| git:reflog [2023/11/05 04:30] – taekgu | git:reflog [2025/04/15 10:05] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| + | ====== git reflog사용 ====== | ||
| + | 원격 저장소에서까지 깔끔하게 삭제 해 버린 브랜치가 사실 필요한 커밋을 가지고 있다면 참 곤란합니다. | ||
| + | |||
| + | 이때는 재빨리 해당 branch를 완벽하게 복구 해 낼 수 있습니다. | ||
| + | |||
| + | ==== git reflog ==== | ||
| + | |||
| + | git reflog 명령어를 입력 합니다. | ||
| + | |||
| + | <code bash> | ||
| + | $ git reflog | ||
| + | 6033892 (HEAD -> feature/ | ||
| + | c8272ad HEAD@{1}: checkout: moving from feature/ | ||
| + | 6033892 (HEAD -> feature/ | ||
| + | 6033892 (HEAD -> feature/ | ||
| + | b262ede HEAD@{4}: checkout: moving from feature/ | ||
| + | 6033892 (HEAD -> feature/ | ||
| + | b262ede HEAD@{6}: checkout: moving from develop to feature/ | ||
| + | b262ede HEAD@{7}: checkout: moving from feature/ | ||
| + | 6033892 (HEAD -> feature/ | ||
| + | b262ede HEAD@{9}: checkout: moving from develop to feature/ | ||
| + | b262ede HEAD@{10}: checkout: moving from feature/ | ||
| + | </ | ||
| + | |||
| + | ==== git checkout ==== | ||
| + | |||
| + | <code bash> | ||
| + | # git checkout -b < | ||
| + | git checkout -b ' | ||
| + | git checkout -b ' | ||
| + | </ | ||
| + | |||