On 12/05/2022 10:11, Faride wrote:
> Hi
> I started using git about 1 month ago and was working fine but when I
> started to connect my local to remote (github) both github and git
> showed my files as binary files which they are not.
The Git default is that files that contain a zero (0x00) byte within the
first 1k of the file is considered as binary. One type of troublesome
test encoding is the 16bit codes used in parts of Windows which
typically ends up with every second byte being zero
> The problem is when I want to see commit changes it just says the
> binary file has changed.
> By searching the issue on the Internet I got the solution to use
> gitattributes or attributes file and define the formats inside, I've
> done it but it didn't work.
Most likely it's character encoding that's not helping.
> Now when I want to see the commit changes in my old files it works but
> when I create new changes it doesn't.
> That would be awesome if you could guide me.
>
What Operating system are you on, and what Git version?
--
Philip