'How can I only display the hash values ​of tags and commits from a Git repository on the Powershell?

I want to see the hash values ​​of the tags and then the commits from a git repository. So separated from each other but really only the hash values, i.e. without description or anything.



Solution 1:[1]

Don't know about powershell, but in a unix shell it's

git for-each-ref refs/tags --format='%(objectname) %(*objectname)'

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jthill