Listing Git References

Inside a git repository, to list all the commits by desceending time, we can use git for-each-ref as bellow,

git for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short)' --count=10