Skip to content

Instantly share code, notes, and snippets.

@rothgar
Created January 11, 2023 16:43
Show Gist options
  • Save rothgar/24d07a459c50b51699807d4d0a84d2bd to your computer and use it in GitHub Desktop.
Save rothgar/24d07a459c50b51699807d4d0a84d2bd to your computer and use it in GitHub Desktop.
Local development git ops
#!/bin/bash
set -oe pipefail
if [ -d .git ]
then
while true
do
inotifywait -r -e close_write ${PWD}
git add . && git commit -m "dev commit"
done
else
echo "not in a git repo"
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment