I by accident amended my former perpetrate. The perpetrate ought to person been abstracted to support past of the modifications I made to a peculiar record.
Is location a manner to back that past perpetrate? If I bash thing similar git reset --hard HEAD^, the archetypal perpetrate besides is undone.
(I person not but pushed to immoderate distant directories)
What you demand to bash is to make a fresh perpetrate with the aforesaid particulars arsenic the actual HEAD perpetrate, however with the genitor arsenic the former interpretation of HEAD. git reset --soft volition decision the subdivision pointer truthful that the adjacent perpetrate occurs connected apical of a antithetic perpetrate from wherever the actual subdivision caput is present.
# Move the current head so that it's pointing at the old commit# Leave the index intact for redoing the commit.# HEAD@{1} gives you "the commit that HEAD pointed at before # it was moved to where it currently points at". Note that this is# different from HEAD~1, which gives you "the commit that is the# parent node of the commit that HEAD is currently pointing to."git reset --soft HEAD@{1}# commit the current tree using the commit details of the previous# HEAD commit. (Note that HEAD@{1} is pointing somewhere different from the# previous command. It's now pointing at the erroneously amended commit.)# The -C option takes the given commit and reuses the log message and# authorship information.git commit -C HEAD@{1} No of these solutions with the usage of HEAD@{1} labored retired for maine, truthful present's my resolution:
git reflog
d0c9f22 HEAD@{0}: commit (amend): [Feature] - ABC Commit Description c296452 HEAD@{1}: commit: [Feature] - ABC Commit Description git reset --soft c296452
Your staging situation volition present incorporate each of the modifications that you unintentionally merged with the c296452 perpetrate.
Mistake producing weblog contented
Sebastian bro💀ðŸ˜#pressure #pressureroblox #blooper #sebastian #funny #getout #meme #gameplay #viral
Sebastian bro💀ðŸ˜#pressure #pressureroblox #blooper #sebastian #funny #getout #meme #gameplay #viral from Youtube.com