Git Signoff Shortcut

When Helm moved from a CLA to a DCO it meant I needed to start adding a signoff to my commits on that project. While git makes this almost easy, by using the --signoff flag, it means I need to remember to use the flag when committing.

To make it easier I created an alias so I can use git cs and it will commit with signoff.

To create the alias I ran the command:

$ git config --global alias.cs 'commit --signoff'

After that, I had an alias I could use when using a signoff.

Leave a Reply

Your email address will not be published. Required fields are marked *