You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

git-transfer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

git-transfer

Transfer Git Commits without the content

1.1.0
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
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

  • Initialises a new Git Repository in the specified directory ...output-directory/repo-name
  • Copies all commit history in all repositories found in the specified input-directory to commit.json
  • 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
  • Creates a Read Me with the output of the script run and commits this at the current time
  • 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

git

FAQs

Package last updated on 04 Jun 2019

Did you know?

Socket

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