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

651    Asked by AnneBell in SQL Server , Asked on Jun 20, 2021

 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.

Answered by Abigail Abraham

Your Answer

Answer (1)

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.   

7 Months

Interviews

Parent Categories