Skip to content

Instantly share code, notes, and snippets.

@ddd1600
Created October 8, 2013 15:34
Show Gist options
  • Save ddd1600/6886589 to your computer and use it in GitHub Desktop.
Save ddd1600/6886589 to your computer and use it in GitHub Desktop.
simply lists your bitbucket repos to the command line for use when cloning existing repos, etc
require 'bitbucket_rest_api'
YOUR_USERNAME="username"
YOUR_PASSWORD="password"
b = BitBucket.new login: YOUR_USERNAME, password: YOUR_PASSWORD
b.repos.list.sort_by(&:utc_last_updated).each do |r|
puts r.name
puts "https://#{b.login}@bitbucket.org//#{r.name}.git"
puts "---------"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment