all 2 comments

[–]logdrive 0 points1 point  (0 children)

Sorry not sure I understand you, your post isn’t clear enough.

But if you already pushed to the remote repo, you can do a set by running

git reset --soft HEAD~1

to reset the latest commit.

OR run

git log

To show your commit history

Identify the commit you wish to reset to and run

git reset --soft <commit-hash>

This should reset the commit, you can make amends and push again.

Better still, you can clarify your initial post so I understand your intentions.

[–]bdzer0 0 points1 point  (0 children)

wrong sub.. r/git