poner un script para sincronizar gitlab con github
This commit is contained in:
parent
4029bc8357
commit
42cb153472
1 changed files with 13 additions and 0 deletions
13
sync.sh
Executable file
13
sync.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Cambia al directorio de tu repositorio
|
||||||
|
cd ~/web
|
||||||
|
|
||||||
|
# Actualiza el repositorio de GitLab
|
||||||
|
git fetch origin
|
||||||
|
git pull origin main
|
||||||
|
|
||||||
|
# Empuja los cambios al repositorio de GitHub
|
||||||
|
git push github --all
|
||||||
|
git push github --tags
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue