“Squash pilot zobowiązuje się” Kod odpowiedzi

Squash zobowiązuje się do odległego oddziału

$ 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 pilot zobowiązuje się

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

Odpowiedzi podobne do “Squash pilot zobowiązuje się”

Pytania podobne do “Squash pilot zobowiązuje się”

Więcej pokrewnych odpowiedzi na “Squash pilot zobowiązuje się” w Shell/Bash

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu