“Squash Remote Commits” Respostas de código

Squash Cometidos no ramo remoto

$ 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

Respostas semelhantes a “Squash Remote Commits”

Perguntas semelhantes a “Squash Remote Commits”

Mais respostas relacionadas para “Squash Remote Commits” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código