git - Why does GitHub think my code has differences? -


when add...

# auto detect text files , perform lf normalization * text=auto 

...to config file github app/client says many (if not all?) of files in repository have changed. many of them says entire file has changed though hasn't. issue line endings don't understand why happeneing.

it seems tell git (via config file) file type text throws differences.

with text=auto, git wants store files in lf format--it doesn't apply filter there. result, file isn't stored lf endings show being modified. want follow advice on gitattributes man page in eol conversion section , do:

$ rm .git/index     # remove index force git $ git reset         # re-scan working directory $ git status        # show files normalized $ git add -u $ git add .gitattributes $ git commit -m "introduce end-of-line normalization" 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -