Git diff

Jmnote bot (토론 | 기여)님의 2016년 3월 29일 (화) 10:30 판 (봇: 자동으로 텍스트 교체 (-<source lang='cli'> +<source lang='console'>))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

git diff
  • 작업디렉토리와 스테이징영역의 차이를 확인하는 git 명령어

2 실습[ | ]

root@zetawiki:~/workspace/hello# echo 'good morning' >> greet.txt
root@zetawiki:~/workspace/hello# cat greet.txt
hello world
good morning
root@zetawiki:~/workspace/hello# git diff greet.txt
diff --git a/greet.txt b/greet.txt
index 3b18e51..f066315 100644
--- a/greet.txt
+++ b/greet.txt
@@ -1 +1,2 @@
 hello world
+good morning

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}