https://github.com/hisamafahri/cm
✍️ ✍️ ✍️ --a CLI to simplified your git
https://github.com/hisamafahri/cm
cli git golang
Last synced: 5 months ago
JSON representation
✍️ ✍️ ✍️ --a CLI to simplified your git
- Host: GitHub
- URL: https://github.com/hisamafahri/cm
- Owner: hisamafahri
- License: mit
- Created: 2022-03-02T07:54:24.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-26T11:33:31.000Z (about 4 years ago)
- Last Synced: 2026-01-12T23:27:47.488Z (6 months ago)
- Topics: cli, git, golang
- Language: Go
- Homepage: https://pkg.go.dev/github.com/hisamafahri/cm
- Size: 93.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CM - A Commit CLI

⚠️⚠️ **IMPORTANT:** ⚠️⚠️ This project is no longer actively maintained, in favor of [nit](https://github.com/hisamafahri/nit). While this project is no longer maintained, feel free to open an issue, or create a new pull request.
---
A CLI to replace your `git commit` command, so your git message can partially follow [the Conventional Changelog](https://github.com/conventional-changelog/conventional-changelog) ecosystem. And yes, it is build on top of [Go](https://go.dev)
## Install
- Download the binary file of the latest version on the [release page](https://github.com/hisamafahri/cm/releases).
- Through `go get`
Just run this:
```bash
go install github.com/hisamafahri/cm
```
## Usage
### Commit Changes
```bash
git add # or the scope of the file you wanna commit
cm
```
To commit all of the changes in the current directory, you can easily run:
```bash
cm -a # or cm --all
# This command will substitute:
# git add .
# cm
```
By running that command, you will add all of the changes in the *current directory* and commit it automatically. :)
## Pushing Changes
```bash
cm p # or cm push
```
This command will push your ***current branch*** into your remote repo.
If there is only *one* remote repo, it will push it there autommatically. If there are multiple online repo, it will prompt you to choose:
```bash
$ cm p
? Which repository you want to push?: [Use arrows to move, type to filter]
> remote1: https://github.com/hisamafahri/remote1
remote2: https://github.com/hisamafahri/remote2
remote3: https://github.com/hisamafahri/remote3
```
## Pushing Changes
We also provided an improved `git log` for you, all you need to do is just run:
```bash
cm l # or cm log
```

## Author
[Hisam A Fahri](https://hisamafahri.com): [@hisamafahri](https://github.com/hisamafahri)
## License
[MIT](LICENSE)