diff options
Diffstat (limited to 'sync.sh')
| -rw-r--r-- | sync.sh | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +#!/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 -m "$text" +echo "============================" +git push +echo "============================" +git log --oneline -3 +echo "============================" +else +echo "Изменений нет !" +echo "============================" +fi |
