# npm-git-clone-no-history

> Clone a git repo and reset the git history

Latest version **1.0.0** (published 2022-09-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install npm-git-clone-no-history
pnpm add npm-git-clone-no-history
yarn add npm-git-clone-no-history
bun add npm-git-clone-no-history
```

Provides the commands `gcnh`, `git-clone-no-history`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-09-05 |
| First published | 2022-09-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | pszponder |
| Keywords | git, clone, history, clean, node, cli |

## Links

- npm: https://www.npmjs.com/package/npm-git-clone-no-history
- Repository: https://github.com/pszponder/npm-git-clone-no-history
- Homepage: https://github.com/pszponder/npm-git-clone-no-history#readme
- Issues: https://github.com/pszponder/npm-git-clone-no-history/issues
- npm.io page: https://npm.io/package/npm-git-clone-no-history

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-09-05

## README

# Git Clone No History

An `npm` script to clone a repository and reset the git history. This is done by removing the `.git` directory and then re-initializing a new git repository in the downloaded directory.

## Usage:

Invoke the cli executable using either of the two commands:

- `gcnh`
- `git-clone-no-history`

The command takes two or three arguments:

1. `<repo-url>` Url to the git repository
2. `<repo-branch>` OPTIONAL: Name of repository branch to clone
3. `<dir-name>` Name of directory to clone the branch to

Example Usage:

```bash
# Clone the "py-project" repository into the "myDirectory" directory
gcnh git@github.com:username/my-project.git myDirectory

# Clone the "second-branch" branch from the "my-project" repository into the "myDirectory" directory
gcnh git@github.com:username/my-project.git second-branch myDirectory
```

## Options:

Use the `-h` or `--help` options after the command to print out a help message in the terminal.

```bash
# Prints out help message for the CLI application
gcnh -h
```

---
_Source: https://npm.io/package/npm-git-clone-no-history · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
