Skip to content

sensorario/gocommit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gocommit

A simple Go CLI tool that stages all changes, commits them with a message, and pushes to your Git repository.

Prompt Example

📦 Installation

Requirements

  • Go installed (go version)
  • make and git available on your system

Go installs

  • MacOS: brew install go
  • ...

Steps

Clone the repository and install the tool globally:

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:

make clean

🚀 Usage

Navigate to any Git repository and run:

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

$ 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:

go mod tidy

To build the binary manually:

go build -o gocommit main.go

📝 License

MIT

About

Un robo del coso per committare cose ma sopratutto per giocare con go

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors