I have PSH scripts in my repositories using a '.ps1' extension. When I edit one, Sourcetree shows a message that "No changes in this file have ben detected, or it is a binary file, or it is configured to be ignored by the file patterns." How do I change configuration so that I can see the text difference?
I would check the file encoding of your PowerShell scripts, as Git and Sourcetree often misidentify .ps1 files as binary if they are saved with a Byte Order Mark or in a specific UTF-16 encoding. Opening the script in an editor like VS Code or Notepad++ and re-saving it with UTF-8 encoding usually fixes the diff view instantly.
It could also be caused by a rule in your local or global .gitattributes file that explicitly treats PowerShell scripts as binary data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.