Skip to content

Commit

Permalink
[git] trailers
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMarquis committed Dec 8, 2024
1 parent 60ab0af commit 54ea517
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -733,3 +733,13 @@ git branch --all |
sed 's/remotes/origin///g' |
xargs --no-run-if-empty git checkout
```
## Trailers
```bash
git commit --amend --no-edit --trailer "Reviewed-by: John Doe <john.doe@example.com>"
```
```bash
git show --no-patch --format='%(trailers:key=Reviewed-by)'
```

0 comments on commit 54ea517

Please sign in to comment.