“Comprometido con la rama incorrecta” Código de respuesta

Comprometido a la rama incorrecta

# undo the last commit, but leave the changes available
git reset HEAD~ --soft
git stash
# move to the correct branch
git checkout name-of-the-correct-branch
git stash pop
git add . # or add individual files
git commit -m "your message here";
# now your changes are on the correct branch
Frantic Flatworm

Comprometido con la rama incorrecta

git stash
git checkout branch123
git stash apply
Successful Seahorse

Respuestas similares a “Comprometido con la rama incorrecta”

Preguntas similares a “Comprometido con la rama incorrecta”

Más respuestas relacionadas con “Comprometido con la rama incorrecta” en Shell/Bash

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código