To do this with curl (sudo apt-get curl) and json pretty (sudo gem install jsonpretty json):
curl -u "YOURGITHUBUSERNAME" http://github.com/api/v2/json/repos/show/OWNER/REPOSITORY |
jsonpretty
Replace YOURGITHUBUSERNAME with your GitHub username (go figure).
Replace OWNER with the repository owner's Git username. Replace REPOSITORY with the repository name.
Or as a nice Bash script (paste this in a file named gitrepo-info):
#!/bin/bash
if [ $# -ne 3 ]
then
echo "Usage: gitrepo-info <username> <owner> <repo>"
exit 65
fi
curl -u "$1" http://github.com/api/v2/json/repos/show/$2/$3|jsonpretty
Use it like so:
gitrepo-info larowlan pisi reel
This will give me information on the pisi/reel repository on GitHub.