Merge pull request #77 from ishchow/master

Update README and systemd script
pull/79/head
Dave Musicant 4 years ago committed by GitHub
commit 7a6fa177ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,7 +65,7 @@ Notes:
* currently, folders are always watched recursively
## Usage
`gitwatch.sh <file or directory to watch> [-r <remote> [-b <branch>]]`<br />
`gitwatch.sh [-r <remote> [-b <branch>]] <file or directory to watch>`<br />
It is expected that the watched file/directory are already in a git repository (the script will not create a repository). If a folder is being watched, this will be watched fully recursively; this also means that all files and sub-folders added and removed from the directory will always be added and removed in the next commit. The `.git` folder will be excluded from the `inotifywait` call so changes to it will not cause unnecessary triggering of the script.
### Starting on Boot

@ -3,7 +3,7 @@ Description=Watch file or directory and git commit all changes. run with: system
[Service]
Environment="SCRIPT_ARGS=%I"
ExecStart=/usr/bin/gitwatch $SCRIPT_ARGS
ExecStart=/usr/local/bin/gitwatch $SCRIPT_ARGS
ExecStop=/bin/true
[Install]

Loading…
Cancel
Save