Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

How to undo “git commit --amend” done instead of “git commit”

Asked by Ananya Pawar Jun 20, 2021 721 views 1 answer
Share

About this question

 I accidentally amended my previous commit. The commit should have been separate to keep a history of the changes I made to a particular file.

Is there a way to undo git commit amend? If I do something like git reset --hard HEAD^, the first commit also is undone.

Your answer

1 Answer

More SQL Server discussions

Learn & Explore

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

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.