반응형
git blame
특정 코드가 누가, 언제, 어떤 Commit으로
변경했는지 확인할 수 있는 명령어
git blame {파일명}
author와 timestamp 출력 X
git blame -s {파일명}
특정 라인[start, end] 까지만 확인
git blame -L {start},{end} {파일명}
Commit Hash 값으로 변경 정보 확인
git show {Commit ID}
시뮬레이션
git blame {파일명}
Commit ID, 변경한 사람, 변경 시간, 라인 번호, 파일 내용이 보여진다.
+ Tips
파일명의 경우 임의로 변경점을 만들어서
git status 로 [Path + 파일명]을 확인하면 빠르다.
author와 timestamp 출력 X
git blame -s {파일명}
특정 라인[start, end] 까지만 확인
git blame -L {start},{end} {파일명}
Commit Hash 값으로 변경 정보 확인
git show {Commit ID}
📌 변경 이력 비교하는 방법으로 git diff 참고
📌 Git 목록
반응형
'Git' 카테고리의 다른 글
[Git 깃] git alias (0) | 2023.01.28 |
---|---|
💻 [Git 깃] 영역별(add, commit, push) 되돌리기 (0) | 2022.08.02 |
[Git 깃] git revert (0) | 2022.07.31 |
[Git 깃] git reset (0) | 2022.07.29 |
[Git 깃] git rebase 위험성 (0) | 2022.05.22 |
댓글