If I run git diff
I would expect to see a list of changes of my working directory relative to whatever had been committed before (or a list of the working direc
Basing on your git status
output there is nothing to show for git diff
without additional parameters. There is nothing to show for git diff --cached
and git diff HEAD
as all of these commands rely on changes already known to Git.
You have no staged files and no changed files from those that are under version control now.
After you add test.txt
under Git control you will get the desired output.
Just type
git add test.txt
or
git add .
Then this file will be added under version control. And future changes of this file will be shown by git diff
.