LinuxCommandLibrary

gitwatch

Automatically commit changes when files are modified

TLDR

Watch directory and auto-commit

$ gitwatch [path]
copy
Watch with custom message
$ gitwatch -m "[Auto commit]" [path]
copy
Watch and push
$ gitwatch -r [remote] -b [branch] [path]
copy
Watch specific branch
$ gitwatch -b [branch] [path]
copy

SYNOPSIS

gitwatch [options] path

DESCRIPTION

gitwatch watches a directory and automatically commits changes whenever files are modified. It uses inotify (on Linux) to detect file changes in real time.
The tool is useful for automatic version control of notes, configuration files, or any directory where you want every change tracked without manual commits.

PARAMETERS

-m message

Commit message.
-r remote
Remote to push to.
-b branch
Branch name.
-d seconds
Delay before commit.
-l length
Commit message length.

SEE ALSO

inotifywait(1), git(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community