need to undo "Reset Changes" action git extensions

1,450 views
Skip to first unread message

Garrett Fritz

unread,
Oct 9, 2013, 1:46:34 PM10/9/13
to gitext...@googlegroups.com
Im relatively new to git, otherwise I wouldnt have done this...

So this may be impossible... but I had a whole bunch of changes that were all tracked in GIT and I went to commit them and noticed there were a few in the log that I did not want, so I hit the "reset changes" button in the commit window and pop! everything is gone... even the ones I wanted to keep.

Any way to 'undo' this reset changes?  None of them were committed obviously so scary time.

Help!

Thanks,

~G

Dave Brotherstone

unread,
Oct 9, 2013, 2:42:45 PM10/9/13
to gitext...@googlegroups.com
On Wed, Oct 9, 2013 at 7:46 PM, Garrett Fritz <garret...@gmail.com> wrote:
Any way to 'undo' this reset changes?  None of them were committed obviously so scary time.


If they were never staged, and never committed, then sadly they are gone.  It's a bit like delete on a file.

If you staged them (even just briefly, then unstaged them, I think!), or stashed them, or ever committed them, then they'd be rescuable.  Reset is one of the only 2 ways to lose work in git :(

Sorry it's not better news.

Dave.

Keith Davis

unread,
Oct 10, 2013, 7:54:16 AM10/10/13
to gitext...@googlegroups.com
And I know this is too little, too late, but you might want to consider using a "sync" service to hold your repos. I store all my critical ones in folder directly synced with SugarSync - SugarSync keeps a copy of the file once it's synced and can restore deleted or changed files.
Reply all
Reply to author
Forward
0 new messages