How can I force “git commit -s” using “git commit” command?

前端 未结 2 717
自闭症患者
自闭症患者 2021-01-17 07:02

I\'m looking for a way to write the Signed-off-by: tag automatically when I commit.

I tried configuring it through the .git/config file (Reference). I p

2条回答
  •  盖世英雄少女心
    2021-01-17 07:34

    [Edit made after last comment]

    I think if I am guessing correctly then, you cannot alias using words which are 'reserved' words for a git command.

    However if you do something like this

    [alias]
      ci = commit -s
    

    Then it will do what you want it to do.

提交回复
热议问题