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'

Licensed under CC BY Creative Commons License ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@emacs.ch ~ 🐦 @torsteinkrause