Reputation: 5753
I am committing files through Git Gui, and this is what I see:
@@ -1,14 +1,14 @@
-* {
- margin:0;
- padding:0;
- text-align: left;
- outline:0; /* chrome */
-}
-table {
- table-layout: fixed;
- border-spacing: 0;
- border-collapse: collapse;
-}
-html {
- height:100%;
+* {
+ margin:0;
+ padding:0;
+ text-align: left;
+ outline:0; /* chrome */
+}
+table {
+ table-layout: fixed;
+ border-spacing: 0;
+ border-collapse: collapse;
+}
+html {
+ height:100%;
}
\ No newline at end of file
Basically it marks all lines as deleted and then again as added. This is obviously false, I only changed one or two lines, if anything.
I suspect something with newlines, and Git not detecting any newlines. I am working on a Windows machine, using Sublime text editor... What can I do?
Upvotes: 2
Views: 527
Reputation: 438
If you configure the core.autocrlf option, that only affects files that you download ie someone else's commits that you are downloading. Files created by others and checked in with different line-endings will, imo, remain with that line-ending character.
Upvotes: 1