Answers for "bootstrap script cdn link"

42

undo commit

# KEEP CHANGES
git reset --soft HEAD~1

# REMOVE CHANGES
git reset --hard HEAD~1
Posted by: Guest on April-07-2020
19

roll back last commit in git

git reset --soft HEAD~1
Posted by: Guest on March-30-2020
7

undo local commit

$ git reset --soft HEAD~1
Posted by: Guest on April-09-2020
5

revert last commit

$ git reset --soft HEAD~1
Posted by: Guest on April-15-2020
1

revert last commit

git reset HEAD~
Posted by: Guest on August-13-2020
1

how to recover last commit git

//the below code can recover your last commited files 
git checkout -f
Posted by: Guest on April-25-2021

Browse Popular Code Answers by Language