I'm using bash and trying to loop through the lines of a file, to add git tags:
$ while read p; do echo $p; git tag $p; done <NEW_TAGS.txt
Given the NEW_TAGS.txt has this content:
Test_V1_4.3
Test_V2_2.7
and each line ends with <CR><LF>, the result of the above line is this:
Test_V1_4.3
fatal: 'Test_V1_4.3?' is not a valid tag name.
Test_V2_2.7
fatal: 'Test_V2_2.7?' is not a valid tag name.
Where does the question marks come from? How do I remove them?
Alternatively, is there a better way to add a list of tags to git from a file?