Skip to content

Commit 86a9cfc

Browse files
committed
Add git log example
1 parent 4b10fe7 commit 86a9cfc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/source-control/git-guidance/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,13 @@ Trailers can be displayed using the [pretty formats](https://git-scm.com/docs/pr
304304
```sh
305305
git log --color --pretty=format:"%C(yellow)%h%C(reset) %C(blue)%an%C(reset) [%C(magenta)%(trailers:key=Assistant-model,valueonly=true,separator=%x2C)%C(reset)] %s%C(bold cyan)%d%C(reset)"
306306
```
307+
```text
308+
2100e6c Author [GPT-4.1,Claude Sonnet 4] Test commit 4 (HEAD -> work-item-8)
309+
7120221 Author [GPT-4.1] Test commit 3
310+
ea03d91 Author [] Test commit 2
311+
f93fd8e Author [GPT-4o] Test commit 1
312+
dde0159 Copilot [] Test work item (#7) (origin/main, origin/HEAD)
313+
```
307314
308315
## Managing Remotes
309316

0 commit comments

Comments
 (0)