Browse Source

docs: add How to sign your previous work

Signed-off-by: Wing-Kam Wong wingkwong.code@gmail.com <wingkwong.code@gmail.com>
Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/366/head
Wing-Kam Wong wingkwong.code@gmail.com 3 years ago committed by Wing-Kam Wong
parent
commit
e29786f614
  1. 11
      contribute/HowToApplyLicense.md

11
contribute/HowToApplyLicense.md

@ -50,3 +50,14 @@ commit automatically with `git commit -s`.
You can also use git [aliases](https://git-scm.com/book/tr/v2/Git-Basics-Git-Aliases) You can also use git [aliases](https://git-scm.com/book/tr/v2/Git-Basics-Git-Aliases)
like `git config --global alias.ci 'commit -s'`. Now you can commit with like `git config --global alias.ci 'commit -s'`. Now you can commit with
`git ci` and the commit will be signed. `git ci` and the commit will be signed.
## How to sign your previous work
In case you forget to sign your work, you can do the following:
```bash
# sign the last N commits - replace it before executing the command
git rebase HEAD~N --signoff
git push -f
```
Loading…
Cancel
Save