diff options
| author | vlapa <vlapa@ya.ru> | 2026-06-13 20:33:26 +0300 |
|---|---|---|
| committer | vlapa <vlapa@ya.ru> | 2026-06-13 20:33:26 +0300 |
| commit | e5abc1fe99340b979b18864d978179f71fe8f5c5 (patch) | |
| tree | 98fd0ad7c6d0744894d6e74e446daacd9e6dd1b5 /sync | |
First
Diffstat (limited to 'sync')
| -rw-r--r-- | sync | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +#!/bin/bash + +# Скрипт для PUSH commit + +set -e + +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 -5 +echo "============================" +else +echo "Изменений нет !" +echo "============================" +fi
\ No newline at end of file |
