I clone repository switch to my branch and when i print git status i see modify files, i try to do git reset --hard but there was no effect :((
git status
On branch release
Changes not staged for commit:
modified: htdocs/fonts/OfficinaSansBoldC.eot
modified: htdocs/fonts/OfficinaSansBoldC.svg
modified: htdocs/fonts/OfficinaSansBoldC.ttf
modified: htdocs/fonts/OfficinaSansBoldC.woff
modified: htdocs/fonts/OfficinaSansC-Book.eot
modified: htdocs/fonts/OfficinaSansC-Book.svg
modified: htdocs/fonts/OfficinaSansC-Book.ttf
modified: htdocs/fonts/OfficinaSansC-Book.woff
no changes added to commit
git reset --hard origin/release
git status
On branch release
Changes not staged for commit
modified: htdocs/fonts/officinasansboldc.eot
modified: htdocs/fonts/officinasansboldc.svg
modified: htdocs/fonts/officinasansboldc.ttf
modified: htdocs/fonts/officinasansboldc.woff
modified: htdocs/fonts/officinasansc-book.eot
modified: htdocs/fonts/officinasansc-book.svg
modified: htdocs/fonts/officinasansc-book.ttf
modified: htdocs/fonts/officinasansc-book.woff
no changes added to commit
The issue with having a core.autocrlf to input is that it can change eol (end of lines) characters even for (binary) documents that should not be touched.
Try:
(meaning clone again your repo, and see if those diffs are still there)
With git 2.8 (March 2016), you will able to quickly check if those changes are eol-related.
See commit a7630bd (16 Jan 2016) by Torsten Bögershausen (
tboegi
).(Merged by Junio C Hamano --
gitster
-- in commit 05f1539, 03 Feb 2016)