1.1.0 • Published 6 years ago

gh-user-change v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

gh-user-change

Too lazy to do find/replace of username on all git files & git remote set-url https://github.com/<new-username>/repo.git

Installation

  • npm install -g gh-user-change

Usage

$ gh-user-change
Usage: [-d <Dir> ] [-o <Old User>] [-n <New User>] [-h]


Options:

-d, --dir <Dir Path>: find all git dir in given <Dir Path>
-o, --old-user <Old Username>: Old git Username for existing git remote urls
-n, --new-user <New Username>: New git Username for replacing existing git remote urls
-h , --help: show this help message and exit
Examples:
$ gh-user-change -d ~/LocalGitDir/ --old-user zuck007 -n prdpx7