-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitHub.sh
More file actions
executable file
·65 lines (63 loc) · 1.48 KB
/
gitHub.sh
File metadata and controls
executable file
·65 lines (63 loc) · 1.48 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh
clear
git pull
clear
echo "+--------------------------+"
echo "| Añadiendo archivos a git |"
echo "+--------------------------+"
sleep 2
git add gitHub.sh &&
git commit -m "Script de subida de archivos al repo" &&
git push origin master
echo "_# 0%"
git add 1-Apuntes/. &&
git commit -m "Apuntes de Base de Datos 2" &&
git add Año2018-19/. &&
git push origin master
echo "**************"
echo "Apuntes ==> OK"
echo "**************"
echo ""
echo "___________# 25%"
echo ""
git commit -m "Script iniciales de bases de datos en Centos 7 - 2018/19" &&
git push origin master
echo "**************"
echo "2018-2019 ==> OK"
echo "**************"
git add Año2019-20/. &&
git commit -m "Script de Base de Datos Oracle en Centos 7 - 2019/20" &&
git push origin master
echo ""
echo "______________________# 50%"
echo ""
echo "**************"
echo "2019-2020 ==> OK"
echo "**************"
git add . &&
git commit -m "Otros archivos - Subidos" &&
git push origin master
sleep 5
echo ""
echo "_________________________________# 75%"
echo ""
git add --all &&
git commit -m "Organizando archivos" &&
git push origin master
git status
echo ""
echo ""
echo "+--------------------------+"
echo "| Trabajo terminado |"
echo "+--------------------------+"
echo ""
echo "____________________________________________# 100%"
echo ""
read -p "Limpiar pantalla (Y/N)" resp
case $resp in
Y) clear;;
y) clear;;
N) sleep 2; echo "OK!";;
n) sleep 2; echo "OK!";;
*) echo "Opción no válida";;
esac