Git Workflow (log)

canyi·2023년 4월 17일
0

git

목록 보기
10/19

저장소에 있는 commit 이력을 조회하는 명령어

Log를 확인하기 위해서 먼저 commit 진행

index.html 만들기 및 commit

commit한 index.html 파일 수정

about.html 만들기 및 commit

profile.html 만들기 및 commit

log 확인하기

git log

commit 아이디, 작성자 닉네임, 작성자 아이디, 작성 날짜, 커밋 메세지 등등을 확인 할수 있음

about.html 수정

노란색 부분: title 메세지
하야색 부분: 내용

esc > :wq

git log로 확인해본 결과 title과 내용이 전부 표시됨

git log --oneline

commit 아이디 부분이 생략해서 나오는데 commit 아이디 같은 경우는 생략한(7자) 정도만 사용을 해도 문재가 없다.

git log --oneline --decorate --graph --all

$ git log -- 파일.확장자

특정 파일의 로그를 확인하고 싶은 경우

profile
백엔드 개발 정리

0개의 댓글