“Usuń zatwierdzenie z PR” Kod odpowiedzi

Usuń zatwierdzenie z PR

# Checkout the desired branch
git checkout <branch>

# Undo the desired commit
git revert <commit>

# Update the remote with the undo of the code
git push origin <branch>
Jumping Boy

Usuń zatwierdzenie z PR

1> git checkout my-pull-request-branch

2> git rebase -i HEAD~n // where n is the number of last commits you want to include in interactive rebase.(n starts with 1)

3> Replace pick with drop for commits you want to discard.
4> Save and exit.
5> git push --force
Proud Porcupine

Odpowiedzi podobne do “Usuń zatwierdzenie z PR”

Pytania podobne do “Usuń zatwierdzenie z PR”

Więcej pokrewnych odpowiedzi na “Usuń zatwierdzenie z PR” w Shell/Bash

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

Przeglądaj inne języki kodu