Files
USB4VC/push.sh
2021-09-15 21:26:28 +01:00

16 lines
434 B
Bash

if [[ $# -eq 0 ]] ; then
echo 'error: please enter a commit comment'
exit 1
fi
find . -type f -name "*.b#*" -exec rm -f {} \;
find . -type f -name "*.s#*" -exec rm -f {} \;
find . -type f -name "*.l#*" -exec rm -f {} \;
find . -type f -name "*.csv#*" -exec rm -f {} \;
find . -type f -name "*.DS_Store*" -exec rm -f {} \;
find . -name "__pycache__" -exec rm -rf {} \;
git add --all
git commit -m "$@"
git push origin master