https://github.com/spenserblack/git-lazy-commit
For when you just want to commit
https://github.com/spenserblack/git-lazy-commit
git git-commands git-commit git-extension go golang
Last synced: 3 months ago
JSON representation
For when you just want to commit
- Host: GitHub
- URL: https://github.com/spenserblack/git-lazy-commit
- Owner: spenserblack
- License: mit
- Created: 2023-01-30T16:32:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-24T21:26:27.000Z (3 months ago)
- Last Synced: 2025-04-04T13:12:14.413Z (3 months ago)
- Topics: git, git-commands, git-commit, git-extension, go, golang
- Language: Go
- Homepage:
- Size: 93.8 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lazy Commit
[](https://github.com/spenserblack/git-lazy-commit/releases)
[](https://github.com/spenserblack/git-lazy-commit/actions/workflows/ci.yml)
[](https://github.com/spenserblack/git-lazy-commit/actions/workflows/github-code-scanning/codeql)
[](https://codecov.io/gh/spenserblack/git-lazy-commit)
[](https://goreportcard.com/report/github.com/spenserblack/git-lazy-commit)Be lazy and just commit
## Description
This provides the `git lazy-commit` command. This command can be used
in situations where you don't really care about choosing which
changes to track or writing your commit message -- you just want to
commit your work.By its nature, `git lazy-commit` can very easily add accidental changes
to the git history if the user isn't careful. So, while this
tool may be appealing to git beginners, its target audience is
actually experienced git users who know when they want to break
the rules for creating good commits.### Staged Changes
If you have staged changes (`git add path/to/file`), then
`git lazy-commit` will commit those staged changes. If you *do not*
have any staged changes, then `git lazy-commit` will commit *all* changes,
**including untracked files** (so be careful!).### Commit Messages
`git lazy-commit` will write your commit message for you. If you've changed
a single file, the commit message will look like this:```
Update www/index.html
```If you've changed multiple files that share a similar directory, your
commit message will look like this:```
Update public/- Update public/favicon.ico
- Create public/icons/favicon-16x16.png
- Create public/icons/favicon-32x32.png
```If there aren't any similar directories that all changes share, or at least one
of the updated files is in the root of the repository, your commit message
will look like this:```
Update files- Update views.py
- Update templates/myapp/index.html
```## Installation
### Unix
```shell
curl https://raw.githubusercontent.com/spenserblack/git-lazy-commit/main/install.sh | sh
```## Windows (PowerShell)
You may need to run this as an administrator.
```powershell
Invoke-WebRequest "https://raw.githubusercontent.com/spenserblack/git-lazy-commit/main/install.ps1" | Invoke-Expression
```### From GitHub Releases
Download the appropriate executable from the [release assets][latest-release],
rename it to `git-lazy-commit`, and add it to a location in `PATH`.## Suggested Alias
`git lazy-commit` can be annoying to type frequently, so you can create an alias
so that you only need to call `git lzc`.```shell
git config --global alias.lzc lazy-commit
```[latest-release]: https://github.com/spenserblack/git-lazy-commit/releases/latest