Skip to content

Instantly share code, notes, and snippets.

View ThakkuGod's full-sized avatar
🏠
Working from home

ThakkuGod ThakkuGod

🏠
Working from home
View GitHub Profile
@ThakkuGod
ThakkuGod / auto_git_file.md
Created August 23, 2024 13:41 — forked from darencard/auto_git_file.md
Automatic file git commit/push upon change

Please see the most up-to-date version of this protocol on my blog at https://darencard.net/blog/.

Automatically push an updated file whenever it is changed

Linux

  1. Make sure inotify-tools is installed (https://github.com/rvoicilas/inotify-tools)
  2. Configure git as usual
  3. Clone the git repository of interest from github and, if necessary, add file you want to monitor
  4. Allow username/password to be cached so you aren't asked everytime