1 개요[ | ]
- git diff
- 작업디렉토리와 스테이징영역의 차이를 확인하는 git 명령어
2 실습[ | ]
- 사전작업: git commit 실습
Console
Copy
root@zetawiki:~/workspace/hello# echo 'good morning' >> greet.txt
root@zetawiki:~/workspace/hello# cat greet.txt
hello world
good morning
Console
Copy
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 같이 보기[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.