git diff, shows the same line as both deleted and added August 13, 2023 by Tarik It’s probably whitespace changes. You can run git diff -w, which will ignore any whitespace changes.