Using the git show-ref --tags , I can see all the SHA1 tags and hashes for all of these tags.
git show-ref --tags
I need a similar command for trees: a command to display all SHA1 hashes for all objects in the tree, but for nothing else.
You can find all the objects accessible from the HEAD pointer.
git ls-tree -r -t HEAD
so that you can filter to find only tree objects using sed or awk for example
sed
awk
git ls-tree -r -t HEAD | awk '$2 == "tree" { print $0 }'
git rev-list --all --objects | # everything reachable, with path cut -d' ' -f1 | # don't want the path git cat-file --batch-check | # append type and size awk '$2=="tree"' # just the trees
Source: https://habr.com/ru/post/1480007/More articles:Good programming practice with PHP with HTML concatenation - htmlHow can I stop the ResourceManager from default to the current culture if the key is not found - c #How to carefully encapsulate and perform a series of background tasks in iOS sequentially? - promiseJS closing explanation in terms of perl - javascriptPotential problems when stopping a meteor without blame - meteorAngularUI Bootstrap Typeahead "capture" action capture - angularjsConfigure idle / signal thread - pythoncontrolling user interface elements in wxPython using streams - pythonHow to compare the contents of two editors in bash? - comparisonFacebook iOS SDK placement as page - iosAll Articles