nt diff
Name
the-notewriter diff
— Show changes between the last commit, the index, and the working tree.
Synopsis
Description
Show changes between the working tree and the index or changes between the index and the last commit.
-
nt diff
- This form is to view the changes you made relative to the index (staging area for the next commit). In other words, the differences are what you could tell The NoteWriter to further add to the index but you still haven’t. You can stage these changes by using
nt-add
.
- This form is to view the changes you made relative to the index (staging area for the next commit). In other words, the differences are what you could tell The NoteWriter to further add to the index but you still haven’t. You can stage these changes by using
-
nt diff --staged
,nt diff --cached
- This form is to view the changes you staged for the next commit relative to the last commit.
--staged
is a synonym of--cached
. In other words, the differences you have already added usingnt-add
.
- This form is to view the changes you staged for the next commit relative to the last commit.
Examples
-
Show changes in the working tree not yet staged for the next commit.
-
Show changes between the index and your last commit; what you would be committing if you run
nt commit
.