- {{node.title}}
{{node.type}} · {{ node.urlSource.name }} · by {{node.authors[0].realName }}
Git Signoff Shortcut [Snippet]
Git Signoff Shortcut [Snippet]
Working on a project that uses Developers Certificates of Origin? Here’s how to create an alias and signoff for git.
May. 20, 19 · Open Source Zone ·
Comment (0)
Join the DZone community and get the full member experience.
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.
Like This Article? Read More From DZone
Comment (0)
Published at DZone with permission of Matt Farina , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Open Source Partner Resources
- {{ node.blurb }}
{{ editionName }}
{{ parent.title || parent.header.title}}
{{ parent.tldr }}
{{ parent.linkDescription }}
{{ message }}
{{ $dialog.title }}