Git diff

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 }}