1.1.0 • Published 5 years ago

git-transfer v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

Git Transfer

Have some projects on BitBucket but want to show your commits on the GitHub contributions graph without pushing multiple repositories or the repositories code itself? Git Transfer is the tool for you!

GitTransfer will copy across historic commits from multiple repositories without committing any of the repositories contents. More detail below.

What it does

  1. Initialises a new Git Repository in the specified directory ...output-directory/repo-name
  2. Copies all commit history in all repositories found in the specified input-directory to commit.json
  3. Creates a log of each repository and commits the changes in this log file at the date of the original repositories commit. You can filter by your own commits in the original repository using email-filter and commit to a single email address in the new repository using commit-email
  4. Creates a Read Me with the output of the script run and commits this at the current time
  5. You can now push to a new secret or public repo on GitHub

To copy across updated commits the script will archive the old repository and create a new one with the updated commits.

Usage

npm install git-transfer -g
git-transfer \
    --input-directory /Users/james/Repos \
    --output-directory /Users/james/Desktop \
    --repo-name MyRepo \
    --email-filter james@example.com,james@email.com \
    --commit-email james@example.com

Note: Use node index.js --help for an explanation of parameters.

1.1.0

5 years ago

1.0.0

5 years ago