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 Anne Bell Jun 20, 2021 1.1K views 6 answers
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

6 Answers

Lanaderaylanaderay Latest answer

Answered on Mar 31, 2026

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



Was this helpful?

Ddeveil Lason

Answered on Mar 18, 2026

level devil – not a troll game is a funny platform game where the goal is simple: reach the door at the end of the level. But the game loves surprising you with disappearing floors, sudden spikes, and unexpected traps. Just when you think you’re safe, the level decides to prank you.

Was this helpful?

Danielwilson

Answered on Feb 12, 2026

There is a deep sense of satisfaction in watching numbers go up. The game provides a steady stream of "achievements" and new cookie clicker unlocks.

Was this helpful?

Henjamin

Answered on Nov 12, 2025

To undo a git commit (amend without losing the original commit drive mad, you can use git reflog to find the commit reference before the amend. Once you identify the correct commit hash, you can reset your branch 

Was this helpful?

Russell Bowers

Answered on Oct 2, 2024

The aim of this is to provide access to third-party applications. The other is obvious: you don't want to deal with issues if someone tries to use a third-party app geometry dash lite to initiate a malicious attack on your account. Therefore, it is not possible to enable this feature when checking in with a different user account.   

Was this helpful?

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.