Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

remove commit from 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
Source by newbedev.com #
 
PREVIOUS NEXT
Tagged: #remove #commit #PR
ADD COMMENT
Topic
Name
7+4 =