I do git status --short
at the root (of the Repository), and it lists the file path relative to the root like as follows:
M NumericalProgramming1Src/FloatingPointNumber.md
M NumericalProgramming1Src/NumericalProgramming.md
I want to prefix all the path with a value stored in a variable: CustomPrefix=My/Path/To/Root/
as follows
M My/Path/To/Root/NumericalProgramming1Src/FloatingPointNumber.md
M My/Path/To/Root/NumericalProgramming1Src/NumericalProgramming.md
How could I achieve this?
NOTE: Sometimes git status
has more than one character in the beginning.