@maxscharwath/gittools
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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.

Package Sidebar

Install

npm i @maxscharwath/gittools

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

11.7 kB

Total Files

5

Last publish

Collaborators

  • maxscharwath