Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Devops
  3. Question
Devops

git uncommit: How to uncommit my last commit in Git

Asked by Amelia Arnold Jun 15, 2021 2.6K views 1 answer
Share

About this question

 How can I uncommit my last commit in git?

Is it

git reset --hard HEAD

or

git reset --hard HEAD^
?

Your answer

1 Answer

More Devops discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest DevOps Blogs

Guides, tips and career advice on DevOps from JanBask experts.