Is there a way to “autosign” commits in Git with a GPG key?

前端 未结 5 579
悲哀的现实
悲哀的现实 2020-11-27 09:01

Is there an easy way to make Git always signs each commit or tag that is created?

I tried it with something like:

alias commit = commit -S

But th

5条回答
  •  余生分开走
    2020-11-27 09:24

    To make auto signing work pre git version 2.0, you'll have to add git alias for commit.

    # git config --global alias.commit commit -S
    [alias]
        commit = commit -S
    

提交回复
热议问题