I'm using Git as my DVCS with GitHub Desktop as my gui. I'm trying to view the diff of commits of my PS script via GitHub but it treats it as a binary.
From this question, I have included a .gitattribute file to the root of the repo to diff .ps1 files, *.ps1 diff
. However, because .ps1 files are UTF-16, it is unsuccessful and doesn't actually diff anything. Is there a way to encode PS files in UTF-8 or are there any other workarounds to this issue?