summaryrefslogtreecommitdiff
path: root/sync
diff options
context:
space:
mode:
authorvlapa <vlapa@ya.ru>2026-06-13 18:00:20 +0300
committervlapa <vlapa@ya.ru>2026-06-13 18:00:20 +0300
commit313fc4f591e59219382bc8a302b7b07e8dbaf918 (patch)
treeb6792694af032097f9dd2d7134a96e56cc78c9a9 /sync
Firstmain
Diffstat (limited to 'sync')
-rw-r--r--sync20
1 files changed, 20 insertions, 0 deletions
diff --git a/sync b/sync
new file mode 100644
index 0000000..decafce
--- /dev/null
+++ b/sync
@@ -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 -a -m "$text"
+echo "============================"
+git push
+echo "============================"
+git log --oneline -5
+echo "============================"
+else
+echo "Изменений нет !"
+echo "============================"
+fi