# doo-it

> Making your git workflow easier

Latest version **1.1.2** (published 2024-02-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install doo-it
pnpm add doo-it
yarn add doo-it
bun add doo-it
```

Provides the command `do-it`.

## 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.1.2 |
| Published | 2024-02-23 |
| First published | 2023-07-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yug Bhanushali |
| Maintainers | yug03 |
| Keywords | github, git, workflow, cli, command-line, development, productivity, version-control, commit, push, stage, git-add, git-commit, git-push, github-workflow, streamline-workflow, simplify-git, developers, efficiency, user-friendly |

## Links

- npm: https://www.npmjs.com/package/doo-it
- Repository: https://github.com/YugBhanushali/do-it
- Homepage: https://github.com/YugBhanushali/do-it#readme
- Issues: https://github.com/YugBhanushali/do-it/issues
- npm.io page: https://npm.io/package/doo-it

## Dependencies (4)

- [chalk](https://npm.io/package/chalk.md) ^5.3.0
- [inquirer](https://npm.io/package/inquirer.md) ^9.2.8
- [commander](https://npm.io/package/commander.md) ^11.0.0
- [simple-git](https://npm.io/package/simple-git.md) ^3.19.1

## 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.1.2 (latest) — 2024-02-23
- 1.1.1 — 2024-01-05
- 1.1.0 — 2024-01-05
- 1.0.0 — 2023-07-21

## README

# Do-It CLI

The Do-It CLI is a command line interface tool designed to simplify common GitHub workflows. With Do-It, you can streamline the process of adding, committing, and pushing changes to your GitHub repository. It provides an easy-to-use interface to perform these tasks in one go.

## Installation

To install the Do-It CLI, use npm:

```bash
npm install -g doo-it
```

## Usage

### ACP Command

The `acp` (Add, Commit, Push) command is a powerful tool for adding files, committing changes, and pushing them to your GitHub repository.

```bash
do-it acp <files...>
```

**Example:**

```bash
do-it acp file1.txt file2.js
```

This command performs the following steps:

1. Adds the specified files to the staging area.
2. Prompts for a commit message.
3. Commits the changes with the provided commit message.
4. Prompts for confirmation to push the changes to the current branch.

If confirmed, the changes are pushed to the origin repository.

Commit All Files
To commit all files, you can use . as a wildcard:

```bash
do-it acp .
```

This will add all files, prompt you for a commit message, and then commit and push the changes.


**Note:** If the push is rejected because the branch is not up to date, you will be informed that files are already up to date.

**Example Output:**

```bash
Current branch: main
Enter commit message: Updated files
Commit Summary:
3 files changed, 42 insertions(+), 8 deletions(-)

Are you sure you want to push changes to branch:(main)? (yes/no) [default=yes]:
```

## Contributing

If you'd like to contribute to the Do-It CLI, please follow these guidelines:

1. Fork the repository.
2. Create a new branch for your feature: `git checkout -b feature-name`.
3. Make your changes and commit them: `git commit -m 'Add feature'`.
4. Push to the branch: `git push origin feature-name`.
5. Submit a pull request.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

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