# gitity

> to do some simple git command

Latest version **1.0.9** (published 2023-09-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install gitity
pnpm add gitity
yarn add gitity
bun add gitity
```

Provides the command `gitity`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2023-09-03 |
| First published | 2022-05-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 18.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | hahazexia |
| Maintainers | hahazexia |
| Keywords | git, tool |

## Links

- npm: https://www.npmjs.com/package/gitity
- Repository: https://github.com/hahazexia/git-tool
- Homepage: https://github.com/hahazexia/git-tool#readme
- Issues: https://github.com/hahazexia/git-tool/issues
- npm.io page: https://npm.io/package/gitity

## Dependencies (6)

- [chalk](https://npm.io/package/chalk.md) ^5.3.0
- [fuzzy](https://npm.io/package/fuzzy.md) ^0.1.3
- [inquirer](https://npm.io/package/inquirer.md) ^9.2.10
- [commander](https://npm.io/package/commander.md) ^9.3.0
- [simple-git](https://npm.io/package/simple-git.md) ^3.7.1
- [inquirer-autocomplete-prompt](https://npm.io/package/inquirer-autocomplete-prompt.md) ^3.0.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.9 (latest) — 2023-09-03
- 1.0.8 — 2023-09-03
- 1.0.7 — 2023-09-02
- 1.0.6 — 2023-08-29
- 1.0.5 — 2023-08-19
- 1.0.4 — 2022-05-31

## README

# gitity

a git tool to run some simple command.

## install

```bash
npm i gitity -g
```

## test

```bash
# base on master to make a new test branch, then pick some branches merge into this new test branch
gitity test <branch name>
```

## delete

```bash
# pick some local branches to delete
gitity delete

# -D force to delete
gitity delete -D
```

## check

```bash
# pick a local branch to checkout
gitity check
```

## revert

```bash
# base on master make a new branch
git checkout master
git pull
git checkout -b feature/revert

# choose type
gitity revert

# `revert` means revert the revert commit to revert back
# other means other commit exclude revert commit
? choose which commit type you want to revert (Use arrow keys)
❯ revert 
  other 

# after choose type, then choose which commit you want to revert
? choose which commit you want to revert
❯ xxxxxxx____2023-09-01T08:37:57+00:00____some commit message________username

# then following 4 scenarios will occur:
# 1. revert success
# 2. there are some conflicts, you must resolve them by youself
# 3. the commit you want to revert is a merge commit, you must pick -m options to continue
# 4. unknown error, there will show error message from git
```

## usub

```bash
# equivalent to `git submodule update --init --recursive`
gitity usub
```

## push

```bash
# git push if error will execute git push --set-upstream origin xxx
gitity push
```

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