No commit activity in last 3 years
No release in over 3 years
Migrates existing git repositories to bitbucket.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

BitbucketMigration

Sequentially import repositories listed in csv file to bitbucket.

Note: this was created with goal to bulk import all existing repositories to bitbucket, i.e. it supposed to be one time task.

Installation

Add this line to your application's Gemfile:

gem 'bitbucket_migration'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bitbucket_migration

Usage

In order to use this gem it is necessary to prepare the following:

YAML configuration file in the following format

username: %bitbucket username%
password: %password or API key (in case of team)%
team: %optionally, if importing to team%

Repository list in csv format, where values have to be in the following order

ssh link to repository, name repository will be created in bitbucket, programming language

For example, if importing from some remote repository first line of csv file would look like below:

git@gitserver:proj/myrepo.git,myrepo,ruby

It is recommended to setup ssh access with private key authentication, thus it won't be necessary to input password for every repository migration.

Lastly, starting migration to bitbucket:

$ bitbucket_migration -c config.yml -l list.csv

Contributing (following git-flow model)

  1. Acknowledge, that in its current state code and tests require severe refactoring
  2. Fork it
  3. Create your feature branch (git checkout -b feature/my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin feature/my-new-feature)
  6. Create new Pull Request

Running tests

  1. Create configuration file and put it in spec/data/config.yml
  2. Create csv file with valid repositories and put it in spec/data/source_repositories.csv
  3. Run tests (rake spec)
  4. Optionally to use guard to constantly execute tests, run (guard)

Documentation

  1. Clone it
  2. Install required development dependencies (bundle install)
  3. Generate documentation (rake doc)