forked from malixin520/springBoot-1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupload.sh
More file actions
40 lines (27 loc) · 1.53 KB
/
upload.sh
File metadata and controls
40 lines (27 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
# ll
sleep 1
# echo -e "\033[35m hello world \033[0m"
echo "----------------------------------------------------------------------------"
echo -e "\033[32m ------------------------------- git status ------------------------------- \033[0m"
echo "----------------------------------------------------------------------------"
git status
echo "----------------------------------------------------------------------------"
echo -e "\033[33m ------------------------------- git pull --------------------------------- \033[0m"
echo "----------------------------------------------------------------------------"
git pull
echo "----------------------------------------------------------------------------"
echo -e "\033[34m ------------------------------- git add . -------------------------------- \033[0m"
echo "----------------------------------------------------------------------------"
git add .
echo "----------------------------------------------------------------------------"
echo -e "\033[35m ------------------------------- git commit -m commitByZsx ---------------- \033[0m"
echo "----------------------------------------------------------------------------"
git commit -m commitByZsx
echo "----------------------------------------------------------------------------"
echo -e "\033[36m ------------------------------- git push --------------------------------- \033[0m"
echo "----------------------------------------------------------------------------"
git push
echo -e "\033[35m 结束了,5秒后关闭 \033[0m"
sleep 5
# read