Log & Diff
기록확인(log)
log는 역사라 생각하면 된다. commit했던 버전들의 기록을 확인 할 수 있다.
$ git log
commit c6ce442fa11b976aa717eeacd4dc05a501bfdda5
Author: dahye Jeong <wjdekgp1750@naver.com>
Date: Thu Mar 23 17:28:55 2017 +0900
first commit
첫 커밋임!!commit 뒤의 문자(c6ce442fa11b976aa717eeacd4dc05a501bfdda5)는 이 버전에 대한 식별자(hashcode)이다.
$ git log -p
commit c6ce442fa11b976aa717eeacd4dc05a501bfdda5
Author: dahye Jeong <wjdekgp1750@naver.com>
Date: Thu Mar 23 17:28:55 2017 +0900
first commit
첫 커밋임!!
diff --git a/test1.html b/test1.html
new file mode 100644
index 0000000..58d93db
--- /dev/null
+++ b/test1.html
@@ -0,0 +1 @@
+<p>test</p>어떠한 코드가 바꼈는지 알 수 있다.
비교(diff)
Unstage(uncommit)된 수정사항 확인
commit(stage)된 수정사항 확인
브랜치간 비교
commit간 비교
마지막 commit 과 그 전 commit 비교
달라진 부분을 알려준다.
Last updated
Was this helpful?