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 :: Bash test if variable is a number 
Shell :: powershell which equivalent 
Shell :: linux -ltr 
Shell :: how to make maven clean install faster in eclipse 
Shell :: Docker: Copying files from Docker container to host 
Shell :: how to compress files in powershell 
Shell :: jupyter command install 
Shell :: powershell which command 
Shell :: ionic icon dimensions 
Shell :: mount a folder from windows inside wsl 
Shell :: odoo 14 install ubuntu 20.04 
Shell :: powershell history file 
Shell :: rmdir multiple directories 
Shell :: how to push git branch to remote 
Shell :: move all subfolders to parent folder linux 
Shell :: what is echo in a batch file 
Shell :: how to git clone a specific branch 
Shell :: append newline to file 
Shell :: pdf compressor linux 
Shell :: if else bash 
Shell :: git local to remote 
Shell :: remove .idea from git 
Shell :: how to set environment variables in linux 
Shell :: To add repo from github in linux 
Shell :: kubernetes windows install 
Shell :: git bash 
Shell :: shell: how to grep a string 
Shell :: set git remote heroku to https://git.heroku.com/resume-projects.git 
Shell :: install gitlab runner 
Shell :: std error bash 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =