https://github.com/sensorario/gocommit
Un robo del coso per committare cose ma sopratutto per giocare con go
https://github.com/sensorario/gocommit
Last synced: 10 months ago
JSON representation
Un robo del coso per committare cose ma sopratutto per giocare con go
- Host: GitHub
- URL: https://github.com/sensorario/gocommit
- Owner: sensorario
- Created: 2025-04-12T20:07:51.000Z (about 1 year ago)
- Default Branch: next
- Last Pushed: 2025-05-15T22:29:05.000Z (about 1 year ago)
- Last Synced: 2025-05-15T22:37:07.478Z (about 1 year ago)
- Language: Go
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gocommit
A simple Go CLI tool that stages all changes, commits them with a message, and pushes to your Git repository.

## ๐ฆ Installation
### Requirements
- [Go](https://go.dev/dl/) installed (`go version`)
- `make` and `git` available on your system
### Steps
Clone the repository and install the tool globally:
```bash
git clone https://github.com/sensorario/gocommit.git
cd gocommit
make
```
This will:
- Run `go mod tidy` to install dependencies
- Compile the Go program
- Move the resulting binary to `/usr/local/bin/gocommit`
- Overwrite any existing command with the same name
## ๐งผ Clean
To remove the compiled binary from the current directory:
```bash
make clean
```
## ๐ Usage
Navigate to any Git repository and run:
```bash
gocommit
```
Youโll be prompted to enter a commit message. The tool executes:
1. `git add .`
2. `git commit -m "your message"`
3. `git push`
## ๐โโ๏ธ Example
```bash
$ gocommit
Enter commit message: fix: correct typo in README
[main b2n3m45n] fix: correct typo in README
1 file changed, 1 insertion(+), 1 deletion(+)
To github.com:your-user/your-repo.git
```
## ๐ Development
To install or update dependencies manually:
```bash
go mod tidy
```
To build the binary manually:
```bash
go build -o gocommit main.go
```
## ๐ License
MIT