The output of the command
git diff --staged
not the same output by Mosh
There are fewer info about the modifications in the files.
I’m on Windows. I tried other flag but I didn’t find the right one.
I know there is the visual tool but I’d like to learn well the command line
Does someone else notice the difference in the output?
Thanks but it is not what I was looking for
the output of the first command on Mac contains detailed info about the modifications made in the file: lines affected. divided into chunks with header
The output on windows is less verbose
If you have a windows machine you can see the difference with the output in the lesson " 12- Viewing Staged and Unstaged Changes"
ON WINDOWS:
![2022-06-03 21_12_40-2-Creating Snapshots (60m).docx - Word](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/d/d103d37cdf6e289d3a3a431a33fdfd0acbe404f1.png)
IN LESSON–> ON MAC:
![2022-06-03 21_13_51-12- Viewing Staged and Unstaged Changes _ Code with Mosh](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/f/ffd55b6e5e3a593a40f9a86d45eba6d94a611385.png)
Probably related to this issue: On Windows make sure you create ANSI or UTF-8 files
Git thinks those text files are binary files so it does not know how to diff them. You have to create UTF-8 files that Git does know how to diff.