I have a problem with git when modifying some files from the same project Appear like new For example, I have an a.php file
-
-namespace Core;
-
-interface IKernel
-{
- public static function Start();
-}
When modifying it after adding it in git, the file appears as new. It does not show me the location of the modification
-
-namespace Core;
-
-interface IKernel
-{
- public static function Start();
-}
//s
git diff
-<?php
-
-namespace Core;
-
-interface IKernel
-{
- public static function Start();
-}
+<?php^M
+^M
+namespace Core;^M
+^M
+interface IKernel^M
+{^M
+ public static function Start();^M
+}^M
+^M
+//s
https://github.com/i74ifa/UnknownRori-PHP/commit/1459d6903c4dccf09b6992b4fe8621cd13a31a83?diff=split
Take a look at this commit for clarity
I added line 7 and it thinks I made a new file
hope it's clear