프로젝트 관리 툴/GIT
Git Log 옵션
bbchu
2019. 8. 19. 18:38
-- 로컬저장소의 Commit 히스토리를 시간순으로 조회
$ git log
-- git log 결과값
commit ca82a6dff817ec66f44342007202690a93763949 -- SHA-1 체크섬값
Author: Scott Chacon <schacon@gee-mail.com> -- commit한 계정
Date: Mon Mar 17 21:52:11 2008 -0700 -- commit 날짜
changed the version number -- commit 메세지
-- 최근 2개 commit 비교 (diff)
$ git log -p -2
-- log 히스토리 통계 조회 (변경파일개수 등)
$ git log --stat
-- oneline은 커밋내용을 한줄로 요약해서 조회 > commit 내역 한꺼번에 볼때
$ git log --pretty=[oneline | short | full | fuller]
이밖에도 날짜, 파일, 작성자, 커밋메세지 별로 조회가 가능 > 차근차근 찾아봐야겠당