https://github.com/chmodshubham/signed-off-dco
Forgot to sign-off commits? Do this!!
https://github.com/chmodshubham/signed-off-dco
dco
Last synced: 4 months ago
JSON representation
Forgot to sign-off commits? Do this!!
- Host: GitHub
- URL: https://github.com/chmodshubham/signed-off-dco
- Owner: chmodshubham
- Created: 2023-04-14T14:14:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-26T14:58:28.000Z (almost 3 years ago)
- Last Synced: 2025-10-09T01:54:51.382Z (8 months ago)
- Topics: dco
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# signed-off DCO
Forgot to sign-off commits? Do this!!
#### Run this to sign-off the last two commits.
```bash
git filter-branch --msg-filter "cat - && echo && echo 'Signed-off-by: Your Name '" HEAD~2..HEAD
```
```bash
#example
git filter-branch --msg-filter "cat - && echo && echo 'Signed-off-by: Shubham Kumar shubham.kumar@ramanujan.du.ac.in'" HEAD~2..HEAD
# PR box
Signed-off-by: Shubham Kumar[shubham.kumar@ramanujan.du.ac.in](mailto:shubham.kumar@ramanujan.du.ac.in)
```
#### Then force push them to the remote repo with the `-f` option:
```bash
git push -f origin
```