“fatal: corrupt patch at line XX” when staging single line

Apparently Git GUI requires that files end with a newline when staging individual lines.

I’m pretty sure that at at least one point in time, staging individual lines was ok even without a newline at the end of the file, but apparently that’s no longer possible. Just ran into this problem myself, having newlines at the end of the file fixes it, and removing them causes it.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)