#!/bin/bash echo "============================" stat=`git status | grep "modified"` if [ -n "$stat" ] then echo "GIT synhronization:" read -p "Input COMMIT: " text echo "============================" #git add . git commit -a -m "$text" echo "============================" git push echo "============================" git log --oneline -5 echo "============================" else echo "Изменений нет !" echo "============================" fi