Skip to content

Instantly share code, notes, and snippets.

View LucidSamuel's full-sized avatar
🎯
Focusing

Samuel Akinosho LucidSamuel

🎯
Focusing
View GitHub Profile
@LucidSamuel
LucidSamuel / auto-git-upload.md
Created July 28, 2022 18:11
Automatically pushing to GIT

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
git config credential.helper store