DevOpsGitList branches sorted by latest commitList branches sorted by latest commit git for-each-ref --sort=-committerdate refs/heads/ See reference.