#Autenticación
| Comando | Descripción | |
|---|---|---|
gh auth login | Iniciar sesión en GitHub | |
gh auth logout | Cerrar sesión | |
gh auth status | Verificar estado de autenticación | |
gh auth refresh | Actualizar token de autenticación | |
gh auth switch | Cambiar cuenta |
#Repositorio
| Comando | Descripción | |
|---|---|---|
gh repo create [name] | Crear nuevo repositorio | |
gh repo clone [repo] | Clonar repositorio | |
gh repo fork [repo] | Hacer fork del repositorio | |
gh repo view | Ver información del repositorio | |
gh repo view --web | Abrir en navegador | |
gh repo list [user] | Listar repositorios | |
gh repo delete [repo] | Eliminar repositorio | |
gh repo rename [new-name] | Renombrar repositorio |
#Issues
| Comando | Descripción | |
|---|---|---|
gh issue list | Listar issues | |
gh issue create | Crear issue (interactivo) | |
gh issue create -t "[title]" -b "[body]" | Crear issue (en línea) | |
gh issue view [number] | Ver detalles del issue | |
gh issue close [number] | Cerrar issue | |
gh issue reopen [number] | Reabrir issue | |
gh issue edit [number] | Editar issue | |
gh issue comment [number] -b "[body]" | Agregar comentario al issue |
#Pull Request
| Comando | Descripción | |
|---|---|---|
gh pr list | Listar PRs | |
gh pr create | Crear PR (interactivo) | |
gh pr create -t "[title]" -b "[body]" | Crear PR (en línea) | |
gh pr view [number] | Ver detalles del PR | |
gh pr checkout [number] | Cambiar a rama del PR | |
gh pr merge [number] | Fusionar PR | |
gh pr merge --squash | Squash y fusionar | |
gh pr merge --rebase | Rebase y fusionar | |
gh pr close [number] | Cerrar PR | |
gh pr review [number] | Revisar PR | |
gh pr diff [number] | Ver diferencias del PR |
#GitHub Actions
| Comando | Descripción | |
|---|---|---|
gh run list | Listar ejecuciones de workflow | |
gh run view [run-id] | Ver detalles de ejecución | |
gh run watch [run-id] | Observar progreso de ejecución | |
gh run rerun [run-id] | Volver a ejecutar workflow | |
gh run cancel [run-id] | Cancelar ejecución | |
gh run download [run-id] | Descargar artefactos | |
gh workflow list | Listar workflows | |
gh workflow run [workflow] | Ejecutar workflow manualmente | |
gh workflow enable [workflow] | Habilitar workflow | |
gh workflow disable [workflow] | Deshabilitar workflow |
#Releases
| Comando | Descripción | |
|---|---|---|
gh release list | Listar releases | |
gh release create [tag] | Crear release | |
gh release create [tag] --generate-notes | Generar notas automáticamente | |
gh release view [tag] | Ver detalles del release | |
gh release download [tag] | Descargar assets del release | |
gh release upload [tag] [files] | Subir assets | |
gh release delete [tag] | Eliminar release |
#Gist
| Comando | Descripción | |
|---|---|---|
gh gist list | Listar gists | |
gh gist create [file] | Crear gist | |
gh gist create --public [file] | Crear gist público | |
gh gist view [id] | Ver gist | |
gh gist edit [id] | Editar gist | |
gh gist clone [id] | Clonar gist | |
gh gist delete [id] | Eliminar gist |
#Búsqueda
| Comando | Descripción | |
|---|---|---|
gh search repos [query] | Buscar repositorios | |
gh search issues [query] | Buscar issues | |
gh search prs [query] | Buscar PRs | |
gh search code [query] | Buscar código | |
gh search commits [query] | Buscar commits |
#API y otros
| Comando | Descripción | |
|---|---|---|
gh api [endpoint] | Llamar API de GitHub | |
gh api graphql -f query="..." | Consulta GraphQL | |
gh browse | Abrir repo actual en navegador | |
gh browse [file] | Abrir archivo en navegador | |
gh alias set [alias] "[command]" | Establecer alias de comando | |
gh extension list | Listar extensiones | |
gh extension install [repo] | Instalar extensión |
#Preguntas frecuentes (FAQ)
이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.