Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

undo git

# KEEP CHANGES
git reset --soft HEAD~1

# REMOVE CHANGES
git reset --hard HEAD~1
Comment

git undo

use "git restore <file>..." to discard changes in working directory
use "git restore --staged <file>..." to unstage
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu play on linux install 
Shell :: Failed to start gunicorn daemon ubuntu 
Shell :: reload zshrc 
Shell :: wget adminer 
Shell :: cond install opencv 
Shell :: how to install python on ubuntu pyenv 
Shell :: installing ncurses library 
Shell :: clean manjaro 
Shell :: ubuntu list file by size 
Shell :: how to uninstall netbeans on ubuntu 
Shell :: ubuntu command ram info 
Shell :: upgrade plotly version 
Shell :: add git user and email 
Shell :: Could not build wheels for pygalmesh which use PEP 517 and cannot be installed directly 
Shell :: shutdown pc in 10 minutes 
Shell :: check for cuda version 
Shell :: how to git commit without message 
Shell :: install jsdoc 
Shell :: npm install redux and react-redux 
Shell :: install pprint python 
Shell :: adb shell screenshot 
Shell :: how to convert .qrc file in python 
Shell :: uninstall tensorflow 
Shell :: check active number of ssh connections 
Shell :: install mysql server and workbench ubuntu 
Shell :: how to install snap store in elementary os 
Shell :: public ip linux 
Shell :: pycharm ubuntu install 
Shell :: how to install node modules 
Shell :: ubuntu install jre 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =