Skip to content

show-ref

  • Show all references (local and remote)
  • Print files contained in .git/refs
# Show all refs
git show-ref

# Show specific ref
git show-ref "ref"
git show-ref "master" # Good to compare if local and remote refs are in sync