title: How to use git interactive rebase for signing off a series of commits
body: <p>I would like to <strong>sign off all commits on a branch</strong> that I have finished and want to send to an upstream project (e.g. via a pull request on GitHub).</p>
  
  <p>A recommended way I've found is to use</p>
  
  <pre><code>git rebase -i [base-commit]
  # Set all commits to "edit"
  git commit --amend --signoff  # do this for all commits
  </code></pre>
  
  <p>How can I do this automatically, in one non-interactive command?</p>