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 :: delete elem soup 
Shell :: PDF Acrobat ubunut 
Shell :: git reset add 
Shell :: how to change execution policy powershell 
Shell :: phpcs other xml file other location phpcs standard xml 
Shell :: git add origin command 
Shell :: how to install mongoose globally 
Shell :: code to change the mac address kali linux 
Shell :: how to disable a wifi card raspberry pi 
Shell :: how to install homebrew on mac 
Shell :: crontab save 
Shell :: ignore line format in git 
Shell :: delete namespace 
Shell :: tail linux 
Shell :: wp-cli search-replace 
Shell :: adobe reader linux 
Shell :: githum readme bold 
Shell :: ubuntu edit sources.list 
Shell :: install aws cli version 2 on mac 
Shell :: windows terminal guid 
Shell :: wsl file 
Shell :: tar multiple files in linux 
Shell :: git view branch 
Shell :: apple logo in terminal 
Shell :: linux how many cpus 
Shell :: get ip address in powershell specifically 
Shell :: how to install kivy.app 
Shell :: how to get git stash changes back 
Shell :: list files in git 
Shell :: wget file from google drive 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =