Git Product home page Git Product logo

git-commit-transfer's Introduction

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 [email protected],[email protected] \
    --commit-email [email protected]

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.