Git: restore my changes which were amended to merge commit -


I accidentally modified the merge command instead of creating a new one. Now I do not know how to remove general changes, which I can push. Changes will appear in gitk, but will not be visible in format-patch. please assist.

You have 2 SHAs that are of interest here - Basic merge commits and modified merge commits What do you do Want git reset in your head original merge committment, while your index and working directory is protected then you can create a new commitment to close the merge commute. Are there.

git reflog

original merge commit

reset git ORIGINAL_MERGE_COMMIT_SHA Reset the command with or reset to git reset {@} X where the position in the referral representing the merge committance is X1 or 1.

You should be prepared for git commit for your basic changes and should not be near here - and here you are a new sin.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -