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.git revert --no-commit 0766c053..HEAD
git commit
Also in Shell:
- Macbook git user config global
- bash delete file
- check powershell version
- fatal: 'heroku' does not appear to be a git repository
- msdos dir for subdirectories
- date linux show millis
- pacman update database
- command to edit in terminal linux
- linux log serial to binary file
- netstat check port
- mac clone directory duplicate
- git worktree
- bash call another script relative to current script
- how to remove installation from cent os
- Linux Mint reset xfce-panel
- gunicorn launch django cmd
- linux min 19.10 install virtualbox
- git proxy
- how to grep if the first letter is a character not a number
- git diff with remote branch
- remove mongo lock file from centos 7
- linux create file
- powershell add element to array
- installing react router dom with yarn