Skip to content

Instantly share code, notes, and snippets.

@oogali
Created February 27, 2011 20:05
Show Gist options
  • Save oogali/846483 to your computer and use it in GitHub Desktop.
Save oogali/846483 to your computer and use it in GitHub Desktop.
List the refs for remote Git repos
for remote in `git remote` ; do
echo "==> ${remote}"
git ls-remote ${remote} 2>/dev/null
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment