nikitavoloboev / gitupdate

Commit and push updated files with file names as commit message

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitUpdate Thanks

Commit and push updated files with file names as commit message

Install

go install github.com/nikitavoloboev/gitupdate@latest

Usage

You can either use it by passing it a file path (with git repo) that you want to commit. i.e.

gitupdate /Users/nikivi/src/cli/gitupdate

Or if you are already in the git directory you want to commit, run:

gitupdate .

This will add all files that have changed since last commit and will include all the file names (without extension) as the commit message. Example use.

If you want to only consider top level folders for the commit message, use the --top (or -t for short) flag.

I personally find it very useful for personal repos where commits are not that important (i.e. notes/dotfiles/docs). I treat these repos as write only so there is no point in wasting time writing a commit message.

Run

  1. Clone repo
  2. If you use VSCode with Go plugin, it will install all Go dependencies for you in the background when you open the project.
  3. Edit the code & run it with go run ..

I use watchexec to develop.

Running watchexec --exts go "echo -- && go run ." will automatically rerun go run . for you on every Go file changed.

Contribute

Have idea how to improve or something is broken?

Search for existing issues or open new one.

PRs with code/docs changes are welcome.

Thank you

You can support me on GitHub or look into other projects I shared.

I also have personal Discord you can join for more indepth discussions.

MIT Twitter

About

Commit and push updated files with file names as commit message

License:MIT License


Languages

Language:Go 100.0%