Crates.io | git_afk |
lib.rs | git_afk |
version | 0.3.1 |
source | src |
created_at | 2024-11-18 19:50:01.870906 |
updated_at | 2024-11-24 12:05:53.31467 |
description | git_afk watches your git repositories for uncommitted changes and automatically commits/pushes them |
homepage | https://github.com/michalvankodev/git_afk |
repository | https://github.com/michalvankodev/git_afk |
max_upload_size | |
id | 1452588 |
size | 55,583 |
git_afk
is a file watcher that should live as a daemon on the system to watch, commit, and push uncommited changes after a debounce time.
Watch the selected repositories for changes in the worktree. If the changes in the worktree are not changed for predefined debounce time, it should if possible commit changes with specific commit message and try to push them. If the commit or the push fails. We can just reset the timer.
You can either download latest binaries from github releases and put them into ~/.local/bin/
or /usr/local/bin/
or anywhere into your $PATH
.
Second option is to install with cargo
:
cargo install git_afk
For the best convenience it is recommended to run the git_afk watch
as a daemon on your system.
Copy this git_afk.service
file to your services folders e.g. ~/.config/systemd/user/
[Unit]
Description=git_afk
[Service]
ExecStart=git_afk watch
[Install]
WantedBy=default.target
Create a launchd configuration file for your app. This involves creating a new file in /Library/LaunchAgents/ with a .plist extension, containing the necessary details like the executable path and startup order.
I am not able to compile/test functionality on other systems. I would recommend using launchd
.
Feel free to open issues/pull requests for additional functionality on other platforms.