I need to add a file to a git repository, and I need the correct type of line ending.
In perforce, I would just use "-t binary
" to force the file to binary, but I don't know how to set the file to binary in GIT.
The repository is rather large, so I don't want to make a global change.
The new file is .html
, and I already have thousands of .html
files whose type I don't want to change.
I don't have a choice about the name for the new file either.
So, how do I force just one file to binary in git without making global changes?