Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git reset keep changes

git reset HEAD^ --soft
Comment

git lost changes after reset --keep

git reflog is your friend.
Find the commit that you want to be on in that list and you can reset to it
for example:git reset --hard e870e41

(If you didn't commit your changes... you might be in trouble - commit early, and commit often!)
Comment

PREVIOUS NEXT
Code Example
Shell :: how to check if I have sudo permission 
Shell :: browser sync for linux 
Shell :: whats home directory variable linux 
Shell :: conflict pull 
Shell :: root folders via gui ubuntu 
Shell :: remove composer package 
Shell :: npm install strapi 
Shell :: how to open sublime in linux 
Shell :: vitejs tailwind 
Shell :: mongodb recherche like 
Shell :: gem install rails version 
Shell :: list files in git 
Shell :: linux memes 
Shell :: debian install ping 
Shell :: install steam on ubuntu 
Shell :: cmd flutter doctor says android studio is not installed 
Shell :: conda install pandas 
Shell :: how to install docker in ubuntu 
Shell :: Closed INTERNAL ERROR: cannot create temporary directory 
Shell :: Is the docker daemon running? 
Shell :: haskell change version 
Shell :: bash function arguments 
Shell :: linux script as background process 
Shell :: grep without pattern 
Shell :: install cassandra ubuntu 
Shell :: grafana docker password 
Shell :: log cpu usage on linux 
Shell :: taskkill cmd 
Shell :: how to download 
Shell :: git move head to specific branch 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =