summaryrefslogtreecommitdiff
path: root/sync.sh
diff options
context:
space:
mode:
authorvlapa <vlapa@ya.ru>2026-06-13 21:46:55 +0300
committervlapa <vlapa@ya.ru>2026-06-13 21:46:55 +0300
commitc1a93f71a6f69a61257120f7f04eb1b8b4b24deb (patch)
treecc0e398d318965aa89d73494d18475d298ecdfe4 /sync.sh
First
Diffstat (limited to 'sync.sh')
-rw-r--r--sync.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/sync.sh b/sync.sh
new file mode 100644
index 0000000..d3f3eeb
--- /dev/null
+++ b/sync.sh
@@ -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