Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to revert back to previous commit in git permanently

# This will destroy any local modifications.
# Don't do it if you have uncommitted work you want to keep.
git reset --hard 0d1d7fc32

# Alternatively, if there's work to keep:
git stash
git reset --hard 0d1d7fc32
git stash pop
# This saves the modifications, then reapplies that patch after resetting.
# You could get merge conflicts, if you've modified things which were
# changed since the commit you reset to.
Comment

PREVIOUS NEXT
Code Example
Shell :: install supervisor ubuntu 20.04 
Shell :: how to copy directory to a ssh server 
Shell :: snap remove 
Shell :: bash htop 
Shell :: pm2 start yarn 
Shell :: how to install anydesk on manjaro 
Shell :: install pyramid 
Shell :: move running terminal process to background linux 
Shell :: linux screen list 
Shell :: ls human readable size 
Shell :: color table in github readme 
Shell :: install android repo 
Shell :: linux permanent alias 
Shell :: port already in use 8000 
Shell :: delete git remote heroku 
Shell :: send file to aws ec2 termnal 
Shell :: node-pre-gyp install failed with error: error: command failed: node-pre-gyp install --fallback-to-build 
Shell :: what is meant by valence shell 
Shell :: how to completely remove haproxy from ubuntu 
Shell :: download specific version of drupal using composer 
Shell :: remove space at end of line file 
Shell :: How can I make LibreOffice look better? 
Shell :: exit vim 
Shell :: install oh my zsh ubuntu 
Shell :: how to switch branch 
Shell :: install ssl ubuntu 
Shell :: apply gitignore after commit 
Shell :: get git config username and email 
Shell :: how to remove untracked files in git 
Shell :: add a cookie to curl 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =