diff options
author | hy <hyang@hyang.xyz> | 2023-09-09 19:48:51 -0700 |
---|---|---|
committer | hy <hyang@hyang.xyz> | 2023-09-09 19:48:51 -0700 |
commit | 41c0525f5ef6317fc7da1ee4c8b367b66bff4be6 (patch) | |
tree | a7aff6f0d9c3f40bdd49de2fb298b1c7006d6322 /watch.sh | |
parent | ecbe7fdcec4744c74ad5089a2764706c2af708af (diff) |
Add git watcher
Diffstat (limited to 'watch.sh')
-rwxr-xr-x | watch.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/watch.sh b/watch.sh new file mode 100755 index 0000000..ddf88f9 --- /dev/null +++ b/watch.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +while true; do + git fetch && git reset --hard origin + sleep 60 +done + |