12.2.3 기간 확인

    커밋의 로그 기록이 많은 경우 필터링할 수 있습니다. 필터링은 특정한 날짜, 시간 등 기준을 적용합니다. 다음 예처럼 어제 작업한 내역만 출력할 수 있습니다.

    $ git show master@{yesterday}

    깃에서 참조하는 refs의 로그는 reflog 명령어 또는 git log -g 옵션을 사용하여 확인할 수 있습니다.

    infoh@DESKTOP MINGW64 /e/gitstudy12 (master)

    $ git log -g 커밋 로그

    commit d0943cfbc5e092668be3b96e98f32e363e05feb1 (HEAD -> master, feature)

    Reflog: HEAD@{0} (hojin <infohojin@gmail.com>)

    Reflog message: commit (initial): first

    Author: hojin <infohojin@gmail.com>

    Date: Sat May 25 18:06:47 2019 +0900

    first

    ...

    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.