Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git revert merge

git revert -m 1 <merge-commit>
Comment

how to revert a merge locally

git reset --hard <cbm>

where cbm is the commit number before the merge you want to revert
to get a list of all the merges you can use the following line

git log --graph

and then use the commit number from the one before the merge you want to revert
Comment

revert local merge

git reset --merge origin/master
Comment

how to undo a merge in git

git reset --merge a9fdeb5
Comment

PREVIOUS NEXT
Code Example
Shell :: valet phpmyadmin 404 
Shell :: git create branch from master 
Shell :: ailure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user] 
Shell :: add sudo user centos server group 
Shell :: unable to import wx 
Shell :: linux find installation location 
Shell :: sail add php mongodb extension 
Shell :: linux extract tar.gz 
Shell :: como atualizar a versão do angular 
Shell :: gcloud app deploy 
Shell :: powershell pip CERTIFICATE_VERIFY_FAILED 
Shell :: how to exit docker 
Shell :: adobe reader linux 
Shell :: how to start ssh agent service windows powershell 
Shell :: silent install google chrome 
Shell :: no matching manifest for linux/arm64/v8 in the manifest list entries 
Shell :: [INS-30131] Initial setup required for the execution of installer validations failed. 
Shell :: cmd copy all files to another folder 
Shell :: speedtest mac terminal 
Shell :: refresh desktop entries 
Shell :: how to check user in group linux 
Shell :: install steghide ubuntu 
Shell :: make nextcloud scan for files 
Shell :: get path ubuntu 
Shell :: Ubuntu – Root folder access via gui 
Shell :: get working directory rstudio 
Shell :: git bash posh git 
Shell :: git flow new feature branch 
Shell :: git go back to previous commit temporarily 
Shell :: install yup in vue 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =