“Squash Remote Commits” Código de respuesta

Squash se compromete en rama remota

$ git rebase -i HEAD~4

At the interactive screen that opens up, replace pick with squash at the top for all the commits that you want to squash.
Save and close the editor through esc --> :wq

$ git push origin branch-name --force
Naughty Newt

Squash Remote Commits

git reset --soft HEAD~2
# 2 being the 2 most recent commits

git add .
git commit -m "Some commit message"
git push -f
Banana in Transit

Respuestas similares a “Squash Remote Commits”

Preguntas similares a “Squash Remote Commits”

Más respuestas relacionadas con “Squash Remote Commits” en Shell/Bash

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código