-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsync.sh
More file actions
26 lines (21 loc) · 782 Bytes
/
sync.sh
File metadata and controls
26 lines (21 loc) · 782 Bytes
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
#!/bin/bash
#Script para linux de sincronización de repositorios
#por Martín Vázquez
#INSTRUCCIONES
#Para que este script sea funcional, debemos haber
#seguido los pasos descritos en el siguiente enlace
#https://help.github.com/articles/fork-a-repo/
#En la linea indicada escribimos la dirección
#donde hemos clonado nuestro repositorio
#la mía está ahí como ejemplo
#NOTA:El nombre del repositorio será siempre ET3
echo ACTUALIZANDO EL REPOSITORIO ET3
#Cambiar aqui------------------------------
cd /var/www/html/ET3
#------------------------------------------
git fetch upstream
echo ---x---x---x---x---x---x---x---x---
git checkout master
echo ---x---x---x---x---x---x---x---x---
git merge upstream/master
echo -------------DONE------------------