0.0.3 • Published 1 year ago

git-commits-migrator v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Git Commits Migrator

npm version npm HitCount npm

With this library, you can effortlessly copy all of your contributions to a new repository, without actually copying any code. How? By creating empty commits with the exact date and time of the original commits, and including your public account information (username and email). Imagine the thrill of seeing your Github activity tracker light up with all of your hard work, now visible for the world to see! Don't let your private contributions go to waste, make them count!

Table of Contents

Prerequisites

1- Make sure to have the other account repos cloned locally

Usage

  • Don't forget to star this repo 😉

With npx

npx git-commits-migrator --source-repo private-repo --target-repo new-private-repo --source-owner USER_NAME --target-owner USER_NAME --source-email EMAIL --target-email EMAIL --target-token TOKEN

With npm

1- Install the library

  • npm
 npm install -g git-commits-migrator

or

  • yarn
 yarn global add git-commits-migrator

2- Execute command

git-commits-migrator -sr private-repo -tr new-private-repo -so USER_NAME -to USER_NAME -se EMAIL -te EMAIL -tt TOKEN

Available Options

  • source-repo: string - Name of source repository

    • alias: sr
    • required
  • target-repo: string - Name of target repository

    • alias: tr
    • required
  • source-owner: string - Username of source repository

    • alias: so
    • required
  • target-owner: string - Username of target repository

    • alias: to
    • required
  • source-email: string - Email of source repository owner

    • alias: se
    • required
  • target-email: string - Email of target repository owner

    • alias: te
    • required
  • target-token: string - Personal Access Token from target account

    • alias: tt
    • required