1.0.2 • Published 1 year ago

@maxscharwath/gittools v1.0.2

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

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 from
  • destination is the destination repository to copy to
  • options 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.