1.0.2 • Published 3 years ago
@maxscharwath/gittools v1.0.2
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/gittoolsUsage
Copying a repository
gittools copy <source> <destination> [options]sourceis the source repository to copy fromdestinationis the destination repository to copy tooptionsare the options to use-c, --createcreates the destination repository if it does not exist (requires Github CLI)-a, --archivearchives the destination repository after copying (requires Github CLI)
Archiving repositories (requires Github CLI)
gittools archive <user/org>user/orgis the user or organization to archive all repositories for
The command will ask for confirmation before archiving each repository to prevent accidental archiving.