Socket
Socket
Sign inDemoInstall

git-transfer

Package Overview
Dependencies
4
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    git-transfer

Transfer Git Commits without the content


Version published
Maintainers
1
Install size
240 kB
Created

Readme

Source

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.

Keywords

FAQs

Last updated on 04 Jun 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc