fix(git): Prevent strpping hash-prefixed from commits

Sets `core.commentChar` to a semicolon (`;`). This prevents Git from
treating lines beginning with a `#` as comments and removing them from
the final commit message. This is useful when writing commit messages
with markdown.
This commit is contained in:
ulic-youthlic 2025-08-30 22:00:04 +08:00
parent 3a271203f3
commit d683e4ae6a
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721

View file

@ -74,6 +74,9 @@
credential = {
helper = "store --file=${config.sops.secrets."git-credential".path}";
};
core = {
commentChar = ";";
};
};
sops.secrets."git-credential" = {
mode = "0640";