Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

undo last commit but keep changes

git reset @~
Comment

undo previous commit but keep changes

// The easiest way to undo the last Git commit is to execute the “git reset” command with the “–soft” option that will preserve changes done to your files.

$ git reset --soft HEAD~1
Comment

PREVIOUS NEXT
Code Example
Shell :: apache/2.4.41 (ubuntu) server at localhost port 80 error 
Shell :: git pull in all repositories 
Shell :: shell for loop parameters 
Shell :: docker clean logs 
Shell :: linux substitute string 
Shell :: stop minecraft server command line 
Shell :: install watchman windows 
Shell :: how to get out of git bash editor 
Shell :: saml2aws logout 
Shell :: pocketsphinx install error 
Shell :: how to install bun.sh 
Shell :: create folder shortcut on desktop ubuntu 
Shell :: install paho mqtt client raspberry pi 
Shell :: arch linux chinese fonts 
Shell :: how to make a beep in cmd 
Shell :: install pip 
Shell :: instal yay arch linux 
Shell :: zsh get current theme 
Shell :: git init branch name 
Shell :: tar.gz terminal 
Shell :: install lunar vim 
Shell :: what shell type 
Shell :: size of a file linux 
Shell :: npm audit 
Shell :: timeshift install 
Shell :: yii get version 
Shell :: count occurrences of word in unix bash 
Shell :: git remove origin 
Shell :: linux search inside files 
Shell :: speed test cli 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =