1.1.0 • Published 3 years ago

git-change-repo-author v1.1.0

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

Git Change Repository Author

npm version

Changes specific commits author in repository

npm.io

Installation

npm i -g git-change-repo-author

Usage

Simple

Just pass author email you want to change.

git-change-repo-author --backup --email=<example@example.com> <repo-url>

New author email and username will be taken from your git config.

Advanced

Pass author email you want to change and new author info

git-change-repo-author --backup --email=<example@example.com> --new-email=<example2@example.com> new-name=<username> <repo-url>

Tips

You can pass repository urls as much as you want <repo-url> <repo-url2> <repo-url3> etc..

Options

OptionDescription
--emailAuthor email you want to change (Required)
--new-emailNew author email you want to use. By default, this will be taken from git config --global user.email (Optional)
--new-nameNew author username you want to use. By default, this will be taken from git config --global user.name (Optional)
--localChanges repository locally. (Optional)
--backupCreates an original repository backup in the current directory. (Strongly recommended)
--push-forceForce push to repository and remove local copy (Optional)

How it works

  1. Clones repository to the current directory (and copies if --backup passed)
  2. Changes repository commit author

Please help me to improve this Readme file by sending PR

1.1.0

3 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago