nadiapr
0
Q:

undo local commit

git reset --soft HEAD~1
9
$ git reset --soft HEAD~1
3
$ git reset --hard HEAD~1
0
git reset <commitId>
# Exemple
git reset 5310517
-1

New to Communities?

Join the community