Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

undo commit

# KEEP CHANGES
git reset --soft HEAD~1

# REMOVE CHANGES
git reset --hard HEAD~1
Comment

git undo commit

# Uncommit the changes
git reset --soft HEAD~1

# Completely delete the changes
git reset --hard HEAD~1
Comment

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

undo git commit

$ git reset HEAD^ 
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

undo reset commit git

git reflog //to get commitID
git reset #commitID
Comment

how to undo commit

git reset <commitId>
# Exemple
git reset 5310517
Comment

PREVIOUS NEXT
Code Example
Shell :: git submodule example 
Shell :: install vim linux 
Shell :: how to install phpunit 
Shell :: boolean in shell script 
Shell :: bash yaml parser library 
Shell :: get from match to end of file 
Shell :: git remove all tracked files after add in git ignoore 
Shell :: jupyter lab download 
Shell :: convert audio to mp3 with ffmpeg 
Shell :: install phpstan laravel 
Shell :: rm directory linux 
Shell :: pycharm 2021.1 linux crack 
Shell :: zgrep recursive 
Shell :: generate jks certificate 
Shell :: wget multiple urls from file 
Shell :: flask run localhost 
Shell :: install adminlte in laravel 
Shell :: gitignore generator201 
Shell :: rmdir command 
Shell :: how to change webmin password from command line 
Shell :: touch command 
Shell :: adb shell 
Shell :: sudo run command as another user 
Shell :: rename file powershell 
Shell :: emporary failure resolving 
Shell :: install vercel 
Shell :: download using docker 
Shell :: Files by size 
Shell :: javascript implements 
Shell :: yarn install production only 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =