Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

undo local commit

$ git reset --soft HEAD~1
Comment

revert local commit

$ git reset --hard HEAD~1
Comment

how to undo a local commit

git reset HEAD~1
Comment

how to undo local commit git

If your commits are only LOCAL, 
you can git reset --hard origin/<branch_name> 
to move back to where the origin is.
Comment

PREVIOUS NEXT
Code Example
Shell :: git configure default editor 
Shell :: ubuntu install jellyfin 
Shell :: linux go to home directory 
Shell :: download the Laravel installer using Compose 
Shell :: git push all tags 
Shell :: git username password config 
Shell :: cd /usr/local/bin/composer 
Shell :: npm install production 
Shell :: how to remove v4l2loopback 
Shell :: how to install free download manager on linux 
Shell :: adding remote origin git 
Shell :: git push example 
Shell :: bash uppercase bad substitution 
Shell :: bash check if file empty 
Shell :: open finder from terminal 
Shell :: check gcc version 
Shell :: what .net framework do i have installed 
Shell :: install deb file in manjaro 
Shell :: install clasp 
Shell :: powershell to string 
Shell :: check if a variable is null in bash 
Shell :: Errors were encountered while processing: libglx-mesa0:amd64 
Shell :: git ignore all files within a directory 
Shell :: bash store file lines in variable 
Shell :: crontab only working days 
Shell :: .gitignore is not ignoring directories 
Shell :: how to run eslint on the whole project 
Shell :: edit cron jobs linux 
Shell :: extract from tar gz into folder 
Shell :: auth token 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =