Accidentally ran git stash pop twice -
I accidentally delete git stash pop
will not do this for me.
"undo" git hiding pop
is a painful unless You do not have raw command-id for your steps (like on your screen). / P>
There are instructions (in the end) to fix the defective steps that you want, because pop
just " applicable
and then < Code> drop ". This means that if you are both hidden, you can use git reset --hard
to restore everything, git stash pop (Securely-it will not be "drop" -
Apply git hide space
) the place you wanted to use, and then verify everything.
If you can locate and restore both steps, then maybe it's possible how I can do it.
If you can find only the second splash (which you want to "unused"), then you can try to reverse it.
> "recurring" from the documentation is given here:
git fsck - adapter | Grep commit | Cut-d \ -f3 | Xargs git log - merge --no-walk --grep = wIP
When you run it, list the command you represent each This Once you make sure those who are correctly recovered, you When all are saved and the way you want it, you can delete various "retrieved" tags. (Note, you can use any name you like, nothing about w Assuming each of them is committed to something that comes out like this:
Checking the object directory: 100% (256/256), done. Examining objects: 100% (66/66), committed committed 2783bc8cf98192acc3de647d6cbff2c1a2aecca5 Merge: 222c4dd 8466342 Author: ... Date: Wed Feb 12 17:38:13 2014 -0700 WIP on the branch: 222c4dd clobber-reg Add example committed E9fc3cc8e7864813b54bb1281c845297a16b1b47 Merge: 222c4dd d790e1f Author: ... Date: Wed Feb 12 17:28:00 2014 -0700 WIP on the branch: Add 222c4dd Clawor-Reg example
date < / Code> Line is useful here because it's time to make a hiding place. It is very difficult to tell those two skirmishes, right? Save the raw SHA-1 ID somewhere and run
git stash show -p
on each code when you find a valuable one, give it a name:
$ git Tags rick-XP-1E9fc3cc8e7864813b54bb1281c845297a16b1b47 $ git tag recovery- exp-2 ...
git reset - ready to go to things like hard
and then apply to git hide
. You can now apply with the tag names made above:
reset $ git - hard # ouch, all have been gone (probably "git stash save" first) $ git stash apply Recover-exp- 3 # that has been corrected
recovery - <->
, this is just one thing I made here.)
Comments
Post a Comment