January 17, 2022

Git comment char

When git is integrated with an issue tracker that can link commit to a particular issue '#' - hash sign sometimes is used to provide issue number (for example #1234). But at the same time hash sign is used as a comment symbols in git rebase change commit message. So, comment is ignored. To overcome this it is possible to change default comment char in git locally:

git config core.commentchar ";"

No comments:

Post a Comment