#!/bin/bash while inotifywait -r -e modify,create,delete .; do git add . git commit -m "Auto-commit on file change" git push origin main done