git - Commits from other users in GitHub ar re-commited by me -
i don't understand why when commits new file shows on end if deleted , re-written same thing when didn't touch file.
we both use windows. idea causes , how avoid it?
they're not same, or else git wouldn't have mentioned different. there 1 possibility if else looks same: stuff can't see must different, i.e. white space.
it's not space/tab kind of issue based on screen shot. it's either white space @ end of line (like spaces) or ever more cr/lf issue using windows.
you need set core.eol
, core.safecrlf
, core.autocrlf
. in particular, if set core.safecrlf
true git yell @ if edited incorrectly.
if want check happened, you'll need open in checkin via it's tag , check line-endings using editor can display them, or can check size before , after. crlf version of file should longer because of cr. in fact, should (based on diff) 108 bytes longer.
Comments
Post a Comment