dfrankow
dfrankow

Reputation: 21469

How to mark a file as not binary in git?

I had some files in Overleaf (a git-based online editor) that had certain characters that made the files look binary. Once the git files are binary, they are not editable online in Overleaf. I took out those characters, so the files should be straight text, but the files are still not editable in Overleaf, probably because git is still treating them as binary.

How do I mark them as "not binary" so I can edit them in Overleaf again?

EDIT: Hmm, maybe there is no way, because revisions have binary characters.

Upvotes: 0

Views: 284

Answers (1)

hakre
hakre

Reputation: 198217

I have no clue for Overleaf, but it normally works with the .gitattributes and there is a binary macro so you can use it:

file.ext -binary

More special interest references:

Upvotes: 1

Related Questions