I_Am_Jacks_____@sh.itjust.workstoLinux@lemmy.ml•Best way to watch a directory for changes and auto-git-commit on Arch Linux?
0·
16 days agoIf you want simple, just commit unconditionally every x minutes with cron. It won’t do anything if there’s nothing to commit
Before showing your terrible understanding of git, try it. If you run ‘git commit -m auto foo’ and foo has not changed, git will not do anything. It’s a no-op. So there is no downside and is very simple. Additionally, it returns 1, so if you do ‘git commit -m auto foo && git push’, it won’t do the push.
But thanks for playing