Aprende a conectar tus repositorios de GitHub y gestionar tu código directamente desde Pocket Code en tu móvil.
Gestionar repositorios desde el móvil solía ser complicado. Con Pocket Code, es tan fácil como en tu desktop.
¡Listo! Ahora puedes acceder a todos tus repositorios.
Hay tres formas de clonar:
Opción A: Desde la app
1. Toca el botón "+" en la pantalla principal
2. Selecciona "Clonar Repositorio"
3. Busca o pega la URL
4. Selecciona ubicación local
Opción B: Desde navegador
1. Abre el repo en GitHub Mobile
2. Toca "Share"
3. Selecciona "Abrir con Pocket Code"
Opción C: Con comandos Git
git clone https://github.com/username/repo.git
# Ver estado
git status
# Añadir cambios
git add .
# Commit
git commit -m "Fix: corregir bug en login"
# Push
git push origin main
O usa la interfaz visual:
# Ver branches
git branch
# Crear branch
git checkout -b feature/nueva-funcionalidad
# Cambiar de branch
git checkout main
# Merge
git merge feature/nueva-funcionalidad
Cuando hay conflictos:
# Después de resolver manualmente
git add archivo-conflicto.js
git commit -m "Resolver conflicto en archivo-conflicto.js"
Guarda cambios temporalmente:
# Guardar cambios
git stash
# Ver stashes
git stash list
# Recuperar cambios
git stash pop
# 1. Asegúrate de estar en main
git checkout main
# 2. Pull últimos cambios
git pull
# 3. Haz el fix
# ... edita archivos ...
# 4. Commit y push
git add .
git commit -m "Fix: bug urgente en producción"
git push
# 1. Crear branch desde main
git checkout main
git pull
git checkout -b feature/nueva-api
# 2. Desarrollar
# ... implementa la feature ...
# 3. Commit frecuente
git add .
git commit -m "feat: agregar endpoint /api/users"
# 4. Push y crear PR
git push -u origin feature/nueva-api
# Luego crear PR desde la app
# 1. Branch desde producción
git checkout production
git checkout -b hotfix/critical-bug
# 2. Fix rápido
# ... corregir ...
# 3. Commit y merge directo
git add .
git commit -m "hotfix: corregir error crítico"
git checkout production
git merge hotfix/critical-bug
git push
✅ Buenos mensajes:
feat: agregar login con Google
fix: corregir validación de email
docs: actualizar README con instrucciones
refactor: simplificar función de búsqueda
❌ Malos mensajes:
cambios
fix
wip
asdfgh
Usa nombres descriptivos:
feature/nombre-featurefix/descripcion-bughotfix/critical-issuerefactor/nombre-refactorPara no tener que autenticar cada vez:
git@github.com:user/repo.gitCrea un .gitignore para ignorar archivos:
# Dependencies
node_modules/
venv/
__pycache__/
# Build outputs
dist/
build/
*.pyc
# Environment
.env
.env.local
# IDE
.vscode/
.idea/
# OS
.DS_Store
Thumbs.db
Automatiza tareas:
# .git/hooks/pre-commit
#!/bin/sh
npm run lint
npm test
# Primero pull
git pull origin main
# Resolver conflictos si hay
# Luego push
git push
Verifica:
# Verifica que hiciste push
git status
# Si dice "Your branch is ahead"
git push
Con Pocket Code tienes el poder completo de Git y GitHub en tu móvil. Ya no hay excusas para no hacer ese commit urgente.
Próximo tutorial: Deploy automático desde GitHub con Vercel
¿Preguntas? Únete a nuestro Discord
¡Happy coding! 🚀