Smartgit: Auto insert commit message

后端 未结 3 1392
孤独总比滥情好
孤独总比滥情好 2021-02-15 01:38

Is there a way to auto insert the commit message in Smartgit with a hook script? (Bash). If a user commit\'s his change, I want to preload the commit message field.

3条回答
  •  灰色年华
    2021-02-15 02:17

    I don't see any SmartGit configuration for this feature.

    I would rather rely on a prepare-commit-msg hook as described in "How do I add project-specific information to the Git commit comment?", based on a commit.template Git configuration.
    See also "Including the current branch name in the commit template" for another example.

提交回复
热议问题