In Windows 11 (even in 10) was written a lot of documentation through a hierarchy of .adoc files and git was used for track controls. Well the project directory was shared to other users where they use Linux.
Now with the git status command appears each .adoc file as modified where if is executed the git diff . command appears all the files as
- All the current content deleted
- All the current content added as new but ending with
^M
In other words each file appears having the content deleted (at the top) and re-added (at the bottom) with ^M
Question
- Is there is a command to remove all these
^M"characters"?
Note
I already did do a research in this network but the solutions proposed is about to "ignore". But is need remove all them.
Goal
Fix and share the current directory to more users with Linux. Therefore the ^M situation should not appear anymore.
^Mis a way of displaying ASCII character0001101(decimal 13, hex 0D) "Carriage Return", the "CR" part of the "CR+LF" sequence traditionally used by MS-DOS and Windows programs to represent a new line; in contrast to the lone "LF" traditionally used by Unix and Linux programs. So rather than "removing the characters", you want to look for settings or tools to "convert the line endings".git add --update --renormalize