@maxscharwath/gittools
v1.0.2
Published
GitTools is a CLI tool to help you copy your git repositories to a new location and archive it if you want to.
Downloads
9
Maintainers
Readme
GitTools
GitTools is a tool to copy files from one git repository to another. It is useful for automatically cloning a repository, changing the remote origin, and pushing to a new repository.
Installation
To have access to the full functionality of GitTools, you must have the following installed:
Github CLI is used to create a new repository, and archiving repositories.
Installing GitTools
npm install -g @maxscharwath/gittools
# or
yarn global add @maxscharwath/gittools
# or
pnpm add -g @maxscharwath/gittools
Usage
Copying a repository
gittools copy <source> <destination> [options]
source
is the source repository to copy fromdestination
is the destination repository to copy tooptions
are the options to use-c, --create
creates the destination repository if it does not exist (requires Github CLI)-a, --archive
archives the destination repository after copying (requires Github CLI)
Archiving repositories (requires Github CLI)
gittools archive <user/org>
user/org
is the user or organization to archive all repositories for
The command will ask for confirmation before archiving each repository to prevent accidental archiving.