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:
parent
3a271203f3
commit
d683e4ae6a
1 changed files with 3 additions and 0 deletions
|
|
@ -74,6 +74,9 @@
|
||||||
credential = {
|
credential = {
|
||||||
helper = "store --file=${config.sops.secrets."git-credential".path}";
|
helper = "store --file=${config.sops.secrets."git-credential".path}";
|
||||||
};
|
};
|
||||||
|
core = {
|
||||||
|
commentChar = ";";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
sops.secrets."git-credential" = {
|
sops.secrets."git-credential" = {
|
||||||
mode = "0640";
|
mode = "0640";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue