OASIS_MOBILE/CONTEXT/03_GIT_ESTADO.txt

64 lines
2.2 KiB
Text

===============================================================
GIT — ESTADO Y COMANDOS
===============================================================
REPO LOCAL: /home/sito/COFRE/CODERS/oasis_mobile/
REMOTE: http://code.03c8.net:3000/s1to/oasis_mobile.git
USUARIO: s1to
ESTADO ACTUAL:
- 3 commits en local (master y test apuntan al mismo sitio)
- Push al remoto PENDIENTE (problema de red)
COMMITS:
9a96d77 first commit
f88a179 oasis_mobile 6.9
54ad8a1 feat: add QR codes for tribe invites, pub invites and user profile sharing
RAMAS:
master -> commit 54ad8a1
test -> commit 54ad8a1 (rama de pruebas)
--------------------------------------------------------------
PROBLEMA DE CONECTIVIDAD AL REMOTO
--------------------------------------------------------------
El servidor code.03c8.net:3000 da TIMEOUT desde esta maquina.
Posibles causas:
- Puerto 3000 bloqueado por firewall en el servidor
- Servidor Gitea caido
- Red privada que requiere VPN
Para diagnosticar (ejecutar en terminal):
nc -zv code.03c8.net 3000 -w 5
Si el servidor es tuyo, abrir puerto:
ufw allow 3000/tcp
Verificar que Gitea corre:
systemctl status gitea
docker ps | grep gitea
--------------------------------------------------------------
COMANDOS PARA CUANDO FUNCIONE LA CONEXION
--------------------------------------------------------------
# Push rama master:
git push -u http://s1to@code.03c8.net:3000/s1to/oasis_mobile.git master
# Push rama test:
git push -u http://s1to@code.03c8.net:3000/s1to/oasis_mobile.git test
# Si la password tiene caracteres especiales (/) usar %2F:
git push -u http://s1to:PASS%2FWORD@code.03c8.net:3000/s1to/oasis_mobile.git master
# Para no repetir credenciales, configurar credential store:
git config --global credential.helper store
git remote set-url origin http://s1to@code.03c8.net:3000/s1to/oasis_mobile.git
--------------------------------------------------------------
WORKFLOW RECOMENDADO
--------------------------------------------------------------
1. Trabajar en rama test
2. Cuando funcione push, subir test primero para verificar
3. Merge a master cuando este todo OK
4. git checkout test -> hacer cambios -> commit -> push origin test