I am trying to get a command in git which can help me fetch list of all the branches or my code and also list down all the hashcode in front of same . As I want to delete all my stale branches and keep it safe for later retrieval.
To List all the branches following command is enough.
Git branch -r
to get the hashcode for a branch
git rev-parse <BranchName>
can I get one command where it list all branches and hashcode in front of it.