Github

[TBC] git에서 로그를 확인하는 다양한 방법

daylee de vel 2021. 7. 10. 17:33

index

git status
git history
git blame[파일이름.py]
git show [커밋아이디]
git diff [커밋 id] [이후 비교대상 커밋 ID]
git log
git reflog

 

📌 git status

staged 여부 확인

Changes to be committed: 
    modified: calculator.py

Changes not staged for commit:
    modified: License

📌git history

tbc

📌git blame [파일이름.py] + git show [커밋아이디]

blame은 비난하다. 탓하다 라는 의미

어떤 파일의 특정 코드를 누가 작성했는지 알아내기 위한 커맨드

git history 커맨드에서 특정 코드의 커밋 아이디를 알 수 있다.

git show 3109 [커밋 아이디] 를 치면 author가 나온다.

git show 3109 [커밋 아이디]

📌git show [커밋아이디]

git show로는 커밋에 대한 디테일한 정보를 알 수 있다.

---이전
+++현재

📌git diff [커밋 id] [이후 비교대상 커밋 ID]

두 커밋간의 차이 보기

📌git log

커밋 히스토리를 출력

📌git reflog

tbc

출처: 코드잇