CmdID

CmdID / Commands

git-for-each-ref

List and optionally format references (branches, tags) in a Git repository. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

List all refs (branches and tags)

git for-each-refIdentify

List only branches

git for-each-ref refs/heads/Identify

List only tags

git for-each-ref refs/tags/Identify

Show branches merged into HEAD

git for-each-ref --merged HEAD refs/heads/Identify

List short names of all refs

git for-each-ref --format "%(refname:short)"Identify

Sort refs by committer date (most recent first)

git for-each-ref --sort -committerdateIdentify

Sort refs by committer date (oldest first)

git for-each-ref --sort committerdateIdentify

Limit output to a specified number of refs

git for-each-ref --count countIdentify