Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

delete commit from 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>
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: git clone specific branch 
Shell :: ram info unix 
Shell :: install samba server ubuntu 22.04 
Shell :: tar file linux 
Shell :: how to go back to the last directory in linux 
Shell :: ffprobe number of frames 
Shell :: fish alias 
Shell :: check total folder size linux 
Shell :: superclass mismatch for class Command 
Shell :: open file in finder from terminal 
Shell :: uninstall all microsoft apps powershell 
Shell :: total disk space in linux 
Shell :: git merge develop to feature 
Shell :: homebrew not in path on ubuntu 
Shell :: do not install puppeteer 
Shell :: sudo shutdown 
Shell :: Cannot install in Homebrew on ARM processor in Intel default prefix 
Shell :: check android studio path linux 
Shell :: git commit not showing up in github 
Shell :: compress directory with bzip2 
Shell :: how to create bootable usb on manjaro 
Shell :: git push heroku master everything up-to-date 
Shell :: duplicate clone remote branch locally git 
Shell :: how to make file in powershell 
Shell :: run mongodb on desktop 
Shell :: revert commit git 
Shell :: delete vendor file 
Shell :: git revert to commit 
Shell :: how to hide hostname mac terminal 
Shell :: bash find file in directory 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =