Skip to content

MaxySpark/Repository-Importer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository-Importer

Import Repository From Github to Bitbucket and Bitbucket to Github (Repository will be Imported as Private)

Prerequisite

  • NodeJS and NPM

Installation and Configuration

  1. Download or Clone This Repo Click Here

  2. Open a terminal In The Cloned Directory

  3. Run $ npm install

  4. Rename the example.env file to .env

  5. Generate a Github Personal Access Token with Scope repo. Copy it and replace with the xxx in .env GITHUB_ACCESS_TOKEN="xxx"

    • Learn Here How to Create Your Github Personal Access Token
  6. Replace the username in .env BITBUCKET_USERNAME="username"

  7. Create A App Password in Bitbucket with Permission Repositories. Copy it and replace with the xxx in .env BITBUCKET_ACCESS_TOKEN="xxx"

    • Learn Here How to Create A App Password in Bitbucket

User Guide

  • Run $ npm start

    It will promt to choose a site(Github/Bitbucket) from which you want to import the repository.

    Uses

  • After choosing a site it will fetch your repositories. Use arrow keys to go up and down, select the repos with space key and hit enter to import the repository to Other site(Bitbucket/Github).

    Uses

  • You Can also type your repository name to search in the list

    Uses

  • After Import Task Complete it Will Ask You If You Want to Import More From The Selected Site

    Uses

  • If You Choose Yes(press y) then it will ask to choose the page from pagination

    Uses

  • And The Process will repeat.

  • If You Can't Find A Repo in the first page/list, it is in other pages. To Directly go to other pages don't select any repo in the first list and hit enter and it will ask you If You Want to Import More press y then select the next page

    Uses

    Uses

Create Github Personal Access Token

Create Bitbucket App Password

Todo

  • Fetch Repo From Next Pages While Typing/Searching

Contribute

  • PRs are Welcome 😊

About

Copy/Import Repo From Github to Bitbucket and Bitbucket to Github

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published