auto-commit
This commit is contained in:
parent
42cb153472
commit
aef0ad32bc
1 changed files with 11 additions and 1 deletions
12
sync.sh
12
sync.sh
|
|
@ -1,11 +1,21 @@
|
|||
#!/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
|
||||
git pull origin main --rebase
|
||||
git push origin
|
||||
|
||||
# Empuja los cambios al repositorio de GitHub
|
||||
git push github --all
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue