Monday, 15 August 2011

git force file encoding on commit -



git force file encoding on commit -

we have multi-platform project, generates binaries few platforms mac, windows, linux... possible forcefulness git alter encoding of files particular platform (for example: linux). every time when user commit or force commit remote repository file encoding changed?

i recommend setting core.eol directives in .gitattributes file, rather relying on global config core.autocrlf.

core.eol

sets line ending type utilize in working directory files have text property set. alternatives lf, crlf , native, uses platform's native line ending. default value native. see gitattributes(5) more info on end-of-line conversion.

git

No comments:

Post a Comment