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 :: install font awesome linux 
Shell :: check library installed in google colab 
Shell :: batch script delete files older than 30 days 
Shell :: run spec file using pyinstaller 
Shell :: bash for loop string 
Shell :: change remote origin to fork 
Shell :: linux file path 
Shell :: install psql 
Shell :: sh is null if 
Shell :: bash scripts options 
Shell :: delete folder terminal mac 
Shell :: copy one branch to another git 
Shell :: undo git pull origin master into feature branch 
Shell :: git reflog 
Shell :: kill a process at a port 
Shell :: how to update an existing repository in github 
Shell :: bash get value after equal sign 
Shell :: install homebrew mac m1 
Shell :: powershell writeline 
Shell :: enable rdp windows 10 powershell 
Shell :: ssh vs gpg keys 
Shell :: how to upgrade in linux 
Shell :: slow internet wifi speed on ubuntu 18.04 
Shell :: snap install slack 
Shell :: sourcetree change commit message 
Shell :: how to get ips of any website 
Shell :: wine ubuntu 
Shell :: useful git commands 
Shell :: unix set current time in file name 
Shell :: shell script get branch name 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =