Skip to content

Instantly share code, notes, and snippets.

@xypnox
Created March 21, 2021 22:06
Show Gist options
  • Save xypnox/f3d8884f1f961d1945d30edc6b8c96e8 to your computer and use it in GitHub Desktop.
Save xypnox/f3d8884f1f961d1945d30edc6b8c96e8 to your computer and use it in GitHub Desktop.
update.sh
#!/bin/bash
gstatus=`git status --porcelain | head -n 20`
if [ ${#gstatus} -ne 0 ]
then
git add --all
git commit -m "Auto Commit" -m "$gstatus"
git push
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment