title: How can I force "git commit -s" using "git commit" command?
body: <p>I'm looking for a way to write the <code>Signed-off-by:</code> tag automatically when I commit.</p>
  
  <p>I tried configuring it through the .git/config file <a href="https://harryrschwartz.com/2014/11/01/automatically-signing-your-git-commits.html" rel="nofollow noreferrer">(Reference)</a>. I put these lines of code:</p>
  
  <pre><code>[alias]
      commit = commit -s
  </code></pre>
  
  <p>This did not work. As commented below, you can not edit git's own alias (like commit).<a href="https://git-scm.com/docs/git-config#git-config-alias" rel="nofollow noreferrer">(Reference)</a></p>
  
  <p>I also tried using the command <a href="https://stackoverflow.com/questions/21302034/how-to-sign-off-signed-off-by-a-git-commit-in-pycharm">(Reference)</a>:
  <code>git config --global format.signoff true</code></p>
  
  <p>Also had no effect. <a href="https://stackoverflow.com/questions/15015894/git-add-signed-off-by-line-using-format-signoff-not-working/15018905#15018905">This explains</a> why.</p>
  
  <p>I'm looking for any solution that automatically places the tag and allows me to edit the commit message directly on git, without having to use a system alias.</p>