4

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.

Eyal Zinder
  • 572
  • 1
  • 7
  • 18

1 Answers1

1

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

Bar Horing Amir
  • 4,469
  • 2
  • 26
  • 22