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
| # Run 'gem install octokit' in terminal first | |
| # 'getAllBranches.sh' and 'download-repos.rb' should be in the same directory. | |
| # Run this file using 'ruby download-repos.rb' in your terminal. | |
| # Organization name can be changed on line 29. | |
| # Credits to @klkelley for writing the code upon which this was based (https://gist.github.com/klkelley/20fe2c35836110589966edd82772f5ca) | |
| require 'Octokit' | |
| require 'io/console' | |
| def get_username |