Skip to content

Instantly share code, notes, and snippets.

@xcodebuild
Created July 6, 2022 01:33
Show Gist options
  • Save xcodebuild/badb2316af559af27938afa83f6aef76 to your computer and use it in GitHub Desktop.
Save xcodebuild/badb2316af559af27938afa83f6aef76 to your computer and use it in GitHub Desktop.
Auto commit & pull & push git repo to keep sync
while :
do
echo "auto commit"
git add .
git commit -m "auto commit" $1
git pull origin master
git push origin master
sleep 600
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment