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?

enter image description here

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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -