git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git screwup with reset
@ 2009-05-18 14:58 jake varghese
  2009-05-18 15:08 ` Shawn O. Pearce
  2009-05-18 15:11 ` Sverre Rabbelier
  0 siblings, 2 replies; 3+ messages in thread
From: jake varghese @ 2009-05-18 14:58 UTC (permalink / raw)
  To: git

Hi All,

I really screwed up.  I had about 2 weeks worth of code I was working  
on that got reset right out before commit.

Here's what happened.

1.  I coded for 2 weeks and didnt commit or add anything (yes, i  
know, real stupid)
2.  I was attempting to commit today and added the files.
3.  I realized a couple of files were added that i didnt want and  
werent being matched to the gitignore because i spelled them wrong.   
I fixed the gitignore file but the files still showed up, Im guessing  
because i used "git add ." before.
4.  Then i ran git reset --hard because i just wanted to undo the  
add.  Clearly this was where everything fell apart.
5.  I lost 2 weeks worth of code.

That's basically how it happened.


When I run git fsck --lost-found i get a whole bunch of dangling  
objects.  If I run git show on those objects it shows me the code  
that was lost.  Anyone know of a way to get this stuff back.  I tried  
rebasing and merging and neither worked.




Thanks in advance,


Jake Varghese
OrgSync Inc.
866.ORG.SYNC
jake@orgsync.com
www.orgsync.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-18 15:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-18 14:58 Git screwup with reset jake varghese
2009-05-18 15:08 ` Shawn O. Pearce
2009-05-18 15:11 ` Sverre Rabbelier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).