Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

undo commit

# KEEP CHANGES
git reset --soft HEAD~1

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

how to undo commit

git reset <commitId>
# Exemple
git reset 5310517
Comment

PREVIOUS NEXT
Code Example
Shell :: conda install sklearn 
Shell :: the repository does not have a release file 
Shell :: install vlc in ubuntu 20.04 terminal 
Shell :: mac terminal find process by port 
Shell :: anaconda opencv install 
Shell :: yarn clear cache 
Shell :: install chai 
Shell :: manjaro clean up disk space 
Shell :: ls file size 
Shell :: download filezilla in ubuntu 
Shell :: composer install production 
Shell :: fork bomb 
Shell :: install ninja ubuntu 
Shell :: remove xampp from ubuntu 
Shell :: shutdown pc in 10 min run command 
Shell :: Syntax Error: TypeError: this.getOptions is not a function 
Shell :: restart touch bar mac 
Shell :: cocoapods not installed flutter mac 
Shell :: npm reinstall 
Shell :: bash: nvm: command not found 
Shell :: docker prune images 
Shell :: nginx certbot ubuntu 
Shell :: how to remove samba ubuntu 
Shell :: chocolatey list installed 
Shell :: install workbench on ubuntu 
Shell :: rails how to check environment 
Shell :: instal screen di linux 
Shell :: open folder from terminal in kali 
Shell :: disable ufw 
Shell :: OSError: [Errno 24] inotify instance limit reached 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =