Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions book/02-git-basics/sections/recording-changes.asc
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ The result tells you the changes you've made that you haven't yet staged.
If you want to see what you've staged that will go into your next commit, you can use `git diff --staged`.
This command compares your staged changes to your last commit:
//////////////////////////
만약 커밋하려고 Staging Area에 넣은 파일의 변경 부분을 보고 싶으면 `git diff --cached` 옵션을 사용한다.
만약 커밋하려고 Staging Area에 넣은 파일의 변경 부분을 보고 싶으면 `git diff --staged` 옵션을 사용한다.
이 명령은 저장소에 커밋한 것과 Staging Area에 있는 것을 비교한다.

[source,console]
Expand Down Expand Up @@ -541,9 +541,9 @@ index e445e28..86b2f7c 100644
----

//////////////////////////
and `git diff --cached` to see what you've staged so far:
and `git diff --cached` to see what you've staged so far (--staged and --cached are synonyms):
//////////////////////////
Staged 상태인 파일은 `git diff --cached` 옵션으로 확인한다.
Staged 상태인 파일은 `git diff --cached` 옵션으로 확인한다. --staged와 --cached는 같은 옵션이다.

[source,console]
----
Expand Down