Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Error given when a push fails due to hook failure is not useful

Abierto
#517 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
65/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go
Área
cli

Línea de trabajo

Reproduce the failure with a pre-push hook using gh stack sync, gh stack push, and gh stack submit, then inspect the push error handling for those commands. Preserve and surface the hook's useful error output instead of only reporting that refs failed; verify the resulting messages against a regular git push.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

I have a pre-push hook setup on my local repos.

When I try gh stack sync it results in this:
Pushing 3 branches to origin...
⚠ Push failed — branches may need force push after rebase

When I try gh stack push it results in this:
Pushing 3 branches to origin...
✗ failed to push: failed to run git: error: failed to push some refs to 'github.com:<my_repo>'

When I try gh stack submit it results in this:
Pushing to origin...
✗ failed to push <my_branch>: failed to run git: error: failed to push some refs to 'github.com:<my_repo>'

Eventually I was able to guess it was my pre-push hook and tried a regular push and it told me what the error was immediately.

Lenguaje dominante
Go
Estrellas
1.5k
Forks
73
Merge medio
1 d 8 h
PR fusionados (30 d)
7

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github/gh-stack

Todos los issues de github/gh-stack

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.