blob: decafce80416c4f29494e283be11e20395bab068 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|