Skip to content

Commit 28981cb

Browse files
author
Henry
committed
📝 inspect git objects (tree, commit, blob)
1 parent 144904c commit 28981cb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ Start:
2525
- [git-moji](https://gitmoji.dev/)
2626
- Videos: [Python-Git-Client](https://www.youtube.com/watch?v=xvzo_nV9PjU), [Git-Interals](https://www.youtube.com/watch?v=MYP56QJpDr4)
2727

28+
## Inspect git objects
29+
30+
```bash
31+
git log --format=raw
32+
git cat-file -p <hash> # pretty print
33+
git cat-file -t <hash> # type
34+
```
2835

2936
## Note
3037

0 commit comments

Comments
 (0)