Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git delete the most recent commit

Delete the most recent commit, without destroying the work you've done:

git reset --soft HEAD~1

Delete the most recent commit and remove changes:

git reset --hard HEAD~1
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install pyqt5 
Shell :: curl weather report 
Shell :: snap install docker 
Shell :: how to install ansible in debian 
Shell :: ubuntu firewall 
Shell :: git push to all remotes 
Shell :: install node 16.15.0 mac cmd 
Shell :: go update all packages 
Shell :: how to install openssl on windows 10 
Shell :: Untracked files: (use "git add <file..." to include in what will be committed) 
Shell :: os environ select defaut gpu 
Shell :: create local branch to track remote 
Shell :: git diff with vimdiff 
Shell :: how to enable autocomplete in jupyter notebook 
Shell :: delete all deployments kubernetes 
Shell :: dash bootstrap install 
Shell :: reload shell command 
Shell :: evillimiter: command not found 
Shell :: change remote git url 
Shell :: linux open file explorer from terminal 
Shell :: ubuntu command history 
Shell :: how to install .deb file in ubuntu from terminal 
Shell :: suid privilege escalation systemctl 
Shell :: change wsl to version 1 
Shell :: install saas 
Shell :: pacman remove orphaned dependencies 
Shell :: adding path in mac 
Shell :: purge a software linux 
Shell :: install wget 
Shell :: install nodejs ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =