Created
October 8, 2013 15:34
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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