summaryrefslogtreecommitdiff
path: root/watch.sh
diff options
context:
space:
mode:
authorhy <hyang@hyang.xyz>2023-09-09 19:48:51 -0700
committerhy <hyang@hyang.xyz>2023-09-09 19:48:51 -0700
commit41c0525f5ef6317fc7da1ee4c8b367b66bff4be6 (patch)
treea7aff6f0d9c3f40bdd49de2fb298b1c7006d6322 /watch.sh
parentecbe7fdcec4744c74ad5089a2764706c2af708af (diff)
Add git watcher
Diffstat (limited to 'watch.sh')
-rwxr-xr-xwatch.sh7
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
+