When I mark version code in git, I like to use marker dots in the tag message.
This can be easily done using annotated tags:
git tag -a v1.0.0 * Change number 1 * Change number 2
However, if I try to use the same tags with the -m option, the tag message is not what I expect:
git tag -a v1.0.0 -m "* Change number 1\n* Change number 2" git show v1.0.0 ... * Change number 1\n* Change number 2 ....
"\ n" was interpreted literally as the characters "\" and "n" instead of a new line. I want to use the -m
option so that I can automate the marking process.
Is it possible to include actual newlines using the git tag
with the -m
option?
source share