Reputation: 664
I'm doing:
git diff HEAD -- myfle.txt
and getting back:
git diff --git a/myfile.txt b/myfile.txt index .... Binary Files a/myfile.txt b/myfile.txt Differ
"Binary Files Differ" .. but no print-out of the actual lines changed. What Am I doing wrong?
I'm also trying this between branches (i.e. git diff DEV QA -- myfile.txt) same result.
Upvotes: 4
Views: 2010
Reputation: 5965
Change the encoding of your file to UTF-8.
If you still don't see the diff then stage the file with git add myfle.txt
, edit the file and do git diff
again
Upvotes: 1