Atlassian Stash | skybert.net

Atlassian Stash


Listing all clone URLs for a given project

This is easy using the REST API:

$ curl -s   http://git.example.com/rest/api/1.0/projects/BATCH/repos | \
  sed 's#[,]#,\n#g' | \
  sed -n 's#[ ]*["]cloneUrl["].*["]\([^"]*\)"[,].*#\1#p'

gmail torstein.k.johansen @ gmail ~ twitter @torsteinkrause ~