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 :: run a command x number of times linux 
Shell :: fatal: You are not currently on a branch. To push the history leading to the current (detached HEAD) state now, use git push origin HEAD:<name-of-remote-branch 
Shell :: check th binggest file in linux 
Shell :: linux install node 
Shell :: kubectl scale --replicas to 0 
Shell :: openssl version command 
Shell :: depends: libssl1.1 (= 1.1.1) but it is not installable 
Shell :: remove all files with extension bash 
Shell :: bash get date format 
Shell :: failed to download repository information ubuntu 
Shell :: cf rolling restart 
Shell :: certbot list all domains 
Shell :: gitignore committed file 
Shell :: set up git repository 
Shell :: browserrouter react not working install 
Shell :: pip install psycopg2 error fedora 
Shell :: how to stop git asking for username and password 
Shell :: heroku install classic 
Shell :: open wsl folder in windows explorer 
Shell :: force install npm 
Shell :: start service docker on linux 
Shell :: how to install curl in centos 7 
Shell :: install homebrew on ubuntu 
Shell :: set go111module= on ubuntu 20.04 
Shell :: laravel add to path ubuntu 
Shell :: git case sensitive folder 
Shell :: emacs ubuntu install 
Shell :: check ubuntu or centos 
Shell :: command line how to find all files that have a string 
Shell :: brew xampp 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =