Konloch Software

GitWatch4J

Published 08/14/2024

I recommend you use the GitWatch project if you need something for production as this has only been tested on Konloch.com.

GitWatch4J is a GitWatch remake written in Java.

What Does It Do?

  • Monitors your file system for changes and will auto commit them after a timeout period.
  • Watch the directory provided
  • On any new files:
    • wait 2 seconds…
    • git add [file]
    • git commit -m "Cleanup"
  • To make editing easier for programs that auto-save, I’ve included a -delay parameter that waits until the file has last been modified at least 10 minutes ago before commit.

Links

Requirements

  • Java 8 or greater

How To Use

Monitor a specific directory:

java -jar gitwatch4j.jar ./posts/ -delayed

Latest Updates