23 lines
349 B
Bash
Executable file
23 lines
349 B
Bash
Executable file
#!/bin/bash
|
|
|
|
|
|
|
|
eval "$(ssh-agent -s)"
|
|
|
|
ssh-add ~/.ssh/id_ed25519
|
|
|
|
# Cambia al directorio de tu repositorio
|
|
cd ~/web
|
|
|
|
# Actualiza el repositorio de GitLab
|
|
|
|
git add .
|
|
git commit -m "auto-commit"
|
|
git fetch origin
|
|
git pull origin main --rebase
|
|
git push origin
|
|
|
|
# Empuja los cambios al repositorio de GitHub
|
|
git push github --all
|
|
git push github --tags
|
|
|